Furniture execute actions
Execute commands on interact
items:
lamp:
display_name: "Lamp"
permission: myitems.decorative.lamp
lore:
- lore-decorative-item
resource:
material: PAPER
generate: false
model_path: lamp
behaviours:
furniture:
light_level: 13
solid: true
events:
placed_armorstand:
interact:
execute_commands:
the_first_command:
command: help
as_console: falseIn this case you can see a furniture which will make the player execute the command /help when they interact the furniture.
You can obviously also add more actions to the placed_armorstand.interaction event, not only execute_commands.
Open a trading menu on interact
In this example you can see how to attach a trading GUI to your furniture. This is useful to create custom machinery.