This repository was archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Using button meta
funniray edited this page May 28, 2018
·
13 revisions
NOTE: All strings replace these variables:
%streamer%: Replaces with the user name of the person running the command
%presser%: The person who pressed the button
%SSL%: Space separated list of players that pressed the button
%CSL%: Comma separated list of players that pressed the button
%HRL%: Human readable list of players that pressed the button (adds in an and, also removes duplicate pressers)
What's the difference?
A button's meta is basically what tells the button what to do.
Every button can have a type
meta tag and a action
meta tag.
Here's a list of each type
and what they do.
Working:
summon:
action: minecraft:mob
NBT (optional): The mob's NBT data
runCommand:
action: full command without slash
runCommandAsServer:
action: full command without slash
switchWindow:
action: name of scene to switch to
Planned:
move:
action: Takes either forward, back, left or right as a string
look: #It is just applied to a joystick, the action isn't needed on this one
Here's a list of additional tags that can be added
Added:
switchWindow: Scene as a string
timeout: Button's cooldown in seconds
sendMessage: Message to send to player
sendTitle: Title to send to player
sendSubtitle: Subtitle to send to player
sendActionTitle: Title to send to player's action bar
requiredClicks: How many times the button has to be clicked for the button to trigger anything
resetScene: Boolean value if the button's scene should reset after it's clicked
setTempSceneAll: Sets everyone's scene temporarily to this scene
setTempSceneAllTime (REQUIRED): Time that this scene is shown
Planned:
enableButton: Button as a string
disableButton: Button as a string
disableButtonAfter: Button as a string #If this button has switchWindow, it will switch all users back to the default scene after the button is disabled
time: Time in seconds to disable that button