#(LeafyMitsuwa) Feature request: Update to Player Places Block event

11 messages · Page 1 of 1 (latest)

meager loom
#

Current event: https://meta.denizenscript.com/Docs/Events/player+places+block
I'd like to request a change to the the current context tags, to account for the offhand.

Ideally, I'd like to see the following tag added:

  • <context.item>, which, returns the ItemTag that was placed., as the current <context.item_in_hand> does not account for the off_hand.
    As such, we're having to work with, i.e., slot 41, or search the inventory for an item, or some other workaround to grab the ItemTag in the off_hand, which, could have changed by the player, depending if ones script has pauses.
mental iglooBOT
#

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.

dull delta
#

<context.item_in_hand> returns the offhand if the offhand is used, doesn't it?

meager loom
#

No, it limits itself to the hotbar, not the offhand.

dull delta
#

are you sure? cause we have <context.hand> and the using:<hand_type> switch on that already

#

(il try it still)

meager loom
#

Well, fuck me. I don't know why, but it does indeed, and I stand corrected.

dull delta
#

no worries kekw_dog the context tag could be a little less consistent with the actual mainhand tag

meager loom
#

Must've relied on <player.item_in_hand> or something.

dull delta
#

yeah, same subtag name oddly