Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.

Using button meta

funniray edited this page Apr 5, 2018 · 13 revisions

A button's meta is basically what tells the button what to do. Every button will 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
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

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
requiredClicks: How many times the button has to be clicked for the button to trigger anything
Clone this wiki locally