#(kiomy_) How to use - inventory and target a custom inventory

12 messages · Page 1 of 1 (latest)

obsidian scaffoldBOT
#

(kiomy_) How to use - inventory and target a custom inventory

#

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.

languid pelican
#

here the code

`wallet:
type: inventory
inventory: chest
title: <&9><bold>Wallet
gui: true
slots:
- [] [] [] [] [] [] [] [] []
- [] [] [] [] [big_button_item] [] [] [] []
- [] [] [] [] [] [] [] [] []

big_button_item:
type: item
material: cookie
display name: <&2>I love cookies
lore:
- <&7>Just a gentle bite.

my_inventory_gui_world:
type: world
events:
after player clicks big_button_item in wallet:
# - inventory set 0:stick slot:0 destination:wallet
- inventory d:wallet adjust slot:13 "lore:Item modified!"

    - narrate "<&[base]>Hey Jinglex! Well done"`
languid pelican
#

Also tryed with give

plain yacht
#

you need to define a copy of the inventory first and then adjust that copy and then open that inventory

#

for example,

- define inv <inventory[wallet]>
- inventory d:<[inv]> adjust slot:14 "lore:Item modified!"
- inventory open d:<[inv]>
#

also, the big_button_item is in slot 14, not 13

#

denizen starts at 1

languid pelican
#

Thank you! i appreciate your help

hushed ravenBOT
#
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.)

#

@languid pelican