#How can I make it to where hoes of all types cannot right click dirt blocks?

17 messages · Page 1 of 1 (latest)

zinc mantle
#

all I need is to be able to make hoes unable to right click dirt and I've been struggling - help would be appreciated!

I feel like this one should be easy, but I don't realy know what I'm doing and I'm hoping someone would be able to help me with this one!

worn heartBOT
#

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

zinc mantle
#
BlockEvents.rightClicked('minecraft:dirt', e => {
    if (event.player.mainHandItem.tag == 'minecraft:hoes'()) {
        e.cancel()
    }
})

This doesn't seem to do what I need it to

thick lance
#

you have an extra () for some reason, but thats also not how you check tags

#
BlockEvents.rightClicked('minecraft:dirt', e => {
    if (event.player.mainHandItem.hasTag('minecraft:hoes'))
        e.cancel()
})
zinc mantle
thick lance
#

i think its just .offHandItem

zinc mantle
zinc mantle
zinc mantle
#

Would this be better as an item right click event? I'm lost in the sauce 😭

thick lance
#

No that won’t work, I’m not sure why this didn’t work, and I’m not at the pc cuz holidays and stuff so I can’t be of too much help rn

#

Try to just cancel any block right click event and see if that works, if not then you might not be able to

zinc mantle
#

It looks like that much works at least
Specifically:

BlockEvents.rightClicked('minecraft:dirt', e => {
    {
        e.cancel()
    }
})
thick lance
#

oh wait

thick lance
zinc mantle
#

It worked, thank you so much!! 😭