CasieAttractionOperate 2.0

Control your attractions with commands.

  1. CasieBarie
    Tested Minecraft Versions:
    • 1.12
    • 1.13
    • 1.16
    Source Code:
    https://github.com/CasieBarieDev/CasieAttractionOperate
    CAO.gif
    With this plugin you can control your attractions with simple commands. When you run a command the block that is set in the attraction file will be changed to a redstone block. Besides that a custom variable will be set on a sign.

    I made this plugin because I had issues with that redstone was to slow for my systems. For example the Release wouldn't immediately lock when the gates were opened. This plugin is to make it easier and more reliable to control your attractions. You still have to create most of your systems of your attraction


    features.gif

    • Variables on Signs
    • Click on Signs
    • Custom commands
    • Custom messages
    • Tabcomplete on every command
    • Release time - The time for how long the release block remains a redstone block.
    • Status block - A block that changes to different colors based on the status of the attraction: RED = Not Allowed to release, ORANGE = Allowed to release, GREEN = RELEASING.
    • PlaceholderAPI support
    • API - You can find the info of the API on the wiki
    Setup_2.gif
    1. Download the plugin.
    2. Put the plugin in your plugins folder and restart your server
    3. Create a system that can control your attraction
    4. Copy the Sample file and change the locations to the locations of your system.
    5. Put the name of the file in the config.
    6. Reload the config using '/cao ReloadConfig'
    Code (YAML):
    #
    #   _____          _              _   _                  _   _              ____                       _      
    #  / ____|        (_)        /\  | | | |                | | (_)            / __ \                     | |    
    # | |     __ _ ___ _  ___   /  \ | |_| |_ _ __ __ _  ___| |_ _  ___  _ __ | |  | |_ __   ___ _ __ __ _| |_ ___
    # | |    / _` / __| |/ _ \ / /\ \| __| __| '__/ _` |/ __| __| |/ _ \| '_ \| |  | | '_ \ / _ \ '__/ _` | __/ _ \
    # | |___| (_| \__ \ |  __// ____ \ |_| |_| | | (_| | (__| |_| | (_) | | | | |__| | |_) |  __/ | | (_| | ||  __/
    #  \_____\__,_|___/_|\___/_/    \_\__|\__|_|  \__,_|\___|\__|_|\___/|_| |_|\____/| .__/ \___|_|  \__,_|\__\___|
    #                                                                                | |                          
    #                                                                                |_|                          
    #
    # --------------------------------------- ATTRACTIONS: ---------------------------------------
    # Copy the sample file in the Attractions and give it the name of your attraction.
    # Then add the locations and variables of your system to the Locations section.
    #
    # *Please dont touch the Status section.*
    #
    # Put the name and location of the file below. (Case Sensitive)
    # * NOTE: You cannot delete the Sample file! This is automatically re-created so that you always have a sample. *
    Attractions
    :
       Sample
    : Attractions/Sample.yml
    # -------------------------------------------------------------------------------------------

    # ---------------------------------------- COMMANDS: ----------------------------------------
    # You can edit the names of the commands u use. Example: 'RELEASE: start' to use '/CAO <attraction> start'
    Commands
    :
      RESTRAINTS
    : Restraints
      GATES
    : Gates
      RELEASE
    : Release
      POWER
    : Power
      BUSY
    : Busy
      STATION
    : Station
    # -------------------------------------------------------------------------------------------

    # --------------------------------------- VARIABLES: ---------------------------------------
    # The variables used on the signs.
    # The NoClosed / NoPowerOn is used when it cannot be switched.
    Variables
    :
      Open
    : '&2. &cOpen &2.'
      Closed
    : '&2. &aClosed &2.'
      NoClosed
    : '&c. &aClosed &c.'
      ReleaseAllowed
    : '&aAllowed'
      ReleaseDisallowed
    : '&cDisallowed'
      PowerOn
    : '&2. &aEnabled &2.'
      PowerOff
    : '&2. &cDisabled &2.'
      NoPowerOn
    : '&c. &aEnabled &c.'
      PowerStartup
    : '&c. &9Starting up.. &c.'
      PowerShutdown
    : '&c. &9Shutting down.. &c.'
    # -------------------------------------------------------------------------------------------

    # ---------------------------------------- MESSAGES: ----------------------------------------
    # Use '' to disable.
    # Message Placeholders:
    #    %attraction%
    #    %args%
    #    %prefix%
    # PlaceholderAPI supported.
    Messages
    :
      Prefix
    : '&a[&9CAO&a] &8>> &7'
     
      NoPermission
    : '%prefix%&cYou do not have access to this command!'
      Usage
    : '%prefix%&4&lUsage: &c/CAO %attraction% %args% &c<true/false || TOGGLE/DONE>'
      UsageAdmin
    : '%prefix%&4&lUsage: &c/CAOADMIN <ReloadConfig/ReloadAttraction> %attraction%'
      UsageInfo
    : '%prefix%&4&lUsage: &c/CAOINFO <Setup/Commands/Placeholders/Support>'
      NotInConfig
    : '%prefix%&cCannot find the file of &d%attraction%&c.'
      Toggle
    : '%prefix%%args% &7|| Attraction: &d%attraction%&7.'
      NoStationPower
    : '%prefix%&4You cannot change the %args% &4of &d%attraction%&4!'
      NotPermitted
    : '%prefix%&4You cannot &6Release &d%attraction% &4.'
      NotPermittedPower
    : '%prefix%&4You cannot change the &1Power &4of &d%attraction%&4!'
      FeatureDisabled
    : '%prefix%&4This feature is not enabled in this state!'
      Reload
    : '%prefix%&eReloading: &6%args%'
     
    # -------------------------------------------------------------------------------------------
    # By: CasieBarie || Source Code: https://github.com/CasieBarieDev/CasieAttractionOperate || Support: https://discord.gg/ZptCBHeHyg
    Code (YAML):
    Settings:
      StationMode
    : true                #If true, the gates and restraints can be opened when BUSY is true. The function STATION will be activated. (Handy for multi-train rides)
      ReleaseTime
    : 20                  #The time in ticks for how long the block remains a redstone block.
      ClickSign
    : true                  #If true you can click the sign to run the command.
      ClickSignMessage
    : true           #If you get a message when you click the sign.
      SignLine
    : 3                      #The line in which the variable is placed. (1 to 4)
      World
    : <worldname>               #The world of the attraction.
    Status
    :
      RESTRAINTS
    : false
      GATES
    : false
      RELEASE
    : false
      POWER
    : Disabled
      BUSY
    : false
      STATION
    : false
    Locations
    :
      Restraints
    : <X Y Z>
      RestraintsSign
    : <X Y Z>        #Var is the location of the sign where a variable will be placed on.
      Gates
    : <X Y Z>
      GatesSign
    : <X Y Z>
      Release
    : <X Y Z>
      ReleaseSign
    : <X Y Z>
      Power
    : <X Y Z>
      PowerSign
    : <X Y Z>
      Status
    : <X Y Z>               #The location of the output status. The block changes to different colors: RED = Not Allowed, ORANGE = Allowed, GREEN = RELEASING.

    Commands_2.gif

    <> - Required!
    {} - Custom command!

    CAO:
    • /cao <attraction> {RESTRAINTS} - To open/close the restraints.
    • /cao <attraction> {GATES} - To open/close the gates.
    • /cao <attraction> {RELEASE} - To release/start the attraction.
    • /cao <attraction> {POWER} <TOGGLE/DONE> - Use 'toggle' to enable/disable the attraction. Use 'done' when your system has finished switching.
    • /cao <attraction> {BUSY} <TRUE/FALSE> - Set the status of the attraction to busy. You cannot release/start the attraction if busy is true.
    • /cao <attraction> {STATION} <TRUE/FALSE> - If the attraction is in the station. Only if this is true you can open/close the restraints/gates. (This is disabled when 'stationMode' is set to 'false' in the attraction file)
    ADMIN:
    • /caoadmin ReloadConfig - Reload the config.
    • /caoadmin ReloadAttraction <attraction> - Reload the variables of the attraction.
    • /caoinfo <Setup/Commands/Placeholders/Support> - Shows a info page.

    Permissions_2.gif

    • CAO.* - Gives permission to all commands.
    • CAO.use - Gives permission to the cao command.
    • CAO.sign - Gives permission to click on signs.
    • CAO.admin - Gives permission to the caoadmin command.

    Videos.gif
    *OFFICIAL VIDEO SOON*

    Do you want you're video on this page? Join the Discord and send me a message.

    Join-our-discord.png
    HAVE FUN!

Recent Updates

  1. [2.0] || SignClick & PlaceholderAPI
  2. The good version