#(gamerlikeg) hold detection

11 messages · Page 1 of 1 (latest)

ruby crescent
#

i was wondering if its possible to make it so when an item (in my case a command block with custom model data 1) is held in offhand and mainhand it would make a set of commands repeatedly happen. anyone know how?

scarlet dragonBOT
#

(gamerlikeg) hold detection

scarlet dragonBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

glad turret
#

!event player holds item

flat talonBOT
# glad turret !event player holds item
Group

Player

Event Lines

player scrolls their hotbar player holds item

Switches

item:<item> to only process the event when the player is going to hold a specified item.

Triggers

when a player scrolls through their hotbar.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<context.new_slot> returns the number of the new inventory slot.
<context.previous_slot> returns the number of the old inventory slot.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

glad turret
#

If so ^

ruby crescent
#

thx

thick rapidsBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@ruby crescent