#(mertjs) How to get is InventoryTag a player or any chest?

20 messages · Page 1 of 1 (latest)

latent wind
#

Example

estus_event_preventer:
    type: world
    events:
        after player clicks item in inventory:
        - narrate <context.action>
        - narrate <context.cursor_item>
        - if <context.cursor_item.has_flag[estus]>:
            - narrate ___________________________
            - narrate <context.slot>
            - narrate <context.inventory>
            - narrate ___________________________

i want to learn about context.inventory is it player or not

quiet geodeBOT
#

(mertjs) How to get is InventoryTag a player or any chest?

quiet geodeBOT
#

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.

latent wind
#

Sorry for my English :d

glad agate
#

!t inventory_type

lament thunderBOT
latent wind
#

returns CRAFTING but i'm inside player inventory without openning any crafting table

glad agate
#

!debug

lament thunderBOT
# glad agate !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

glad agate
#

could also try out

#

!t inventory.id_type

lament thunderBOT
latent wind
#

thanks very much :)

glad agate
#

did it work?

latent wind
#

yes

#

it returns player

#

or location

glad agate
#

then do /resolved to close this thread :)

latent wind
#

okay :)