#How to use tags?
8 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Use #minecraft:beds
BlockEvents.rightClicked('#minecraft:beds', event => {
event.player.tell(Text.gold('To set your spawn you must find a Waystone!'))
event.cancel()
})
you could use it inside the event, but you can't use it as an event filter
you would need to do something like
BlockEvents.rightClicked(event => {
if (event.block.hasTag('minecraft:beds')) {
event.player.tell(Text.gold('To set your spawn you must find a Waystone!'))
event.cancel()
}
})
Ticket closed!
Ticket closed!