#How to use tags?

8 messages · Page 1 of 1 (latest)

wintry prawn
#

I want to use tags for this rather than one item

I tried minecraft:beds in the event name but it wouldnt work

BlockEvents.rightClicked('minecraft:white_bed', event => {
    event.player.tell(Text.gold('To set your spawn you must find a Waystone!'))
    event.cancel() 
})

thanks

turbid brookBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

thick karma
#

Use #minecraft:beds

#
BlockEvents.rightClicked('#minecraft:beds', event => {
    event.player.tell(Text.gold('To set your spawn you must find a Waystone!'))
    event.cancel() 
})
dusky python
#

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() 
  }
})