#(thelastblo) add item to inventory flag

1 messages · Page 1 of 1 (latest)

gleaming wigeon
#

Hey i know adjusting inventories is a bit different than adjusting other object types and i was wondering a good way to add an item to an inventory that is saved as a flag

somber matrixBOT
#

(thelastblo) add item to inventory flag

somber matrixBOT
#

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.

gleaming wigeon
#

like say i wanted to add a saddle to an inventory in the flag

vestal edge
#

The inventory object is saved in a flag?

#

Try uh

#

!t inventorytag.include_item

sly bluffBOT
#
Possible Confusion

Did you mean to search for inventorytag.exclude_item?

vestal edge
#

Mm

meager cargo
#

inventory command should work fine

#

!c inventory

sly bluffBOT
# meager cargo !c inventory
Group

item

Syntax

inventory [open/close/copy/move/swap/set/keep/exclude/fill/clear/update/adjust <mechanism>:<value>/flag <name>(:<action>)[:<value>] (expire:<time>)] (destination:<inventory>) (origin:<inventory>/<item>|...) (slot:<slot>)

Short Description

Edits the inventory of a player, NPC, or chest.

Description

Use this command to edit the state of inventories.
By default, the destination inventory is the current attached player's inventory.

If you are copying, swapping, removing from (including via "keep" and "exclude"), adding to, moving, or filling inventories,
you'll need both destination and origin inventories.

Origin inventories may be specified as a list of ItemTags, but destinations must be actual InventoryTags.

Using "open", "clear", or "update" only require a destination.
"Update" also req...

meager cargo
#

and by extention here, give

vestal edge
#

It would? I'd prefer give here

meager cargo
#

!c give

sly bluffBOT
# meager cargo !c give
Group

item

Syntax

give [<item>|...] (quantity:<#>) (unlimit_stack_size) (to:<inventory>) (slot:<slot>) (allowed_slots:<slot-matcher>) (ignore_leftovers)

Short Description

Gives the player an item or xp.

Description

Gives the linked player items.

Optionally specify a slot to put the items into. If the slot is already filled, the next available slot will be used.
If the inventory is full, the items will be dropped on the ground at the inventory's location.
For player inventories, only the storage contents are valid - to equip armor or an offhand item, use !command equip.

Specifying "unlimit_stack_size" will allow an item to stack up to 64. This is useful for stacking items
with a max stack size that...

vestal edge
#

Coolio

#

I swear I I've seen an include item tag

meager cargo
#

point being that the inventory commands shouldn't care how you input them

gleaming wigeon
#

i have a ridable wolf that has an "inventory" by saving an inventory flag to it. when i right click it with an item, i want the item to be saved into its flagged inventory. I made this command inventory set d:<context.entity.flag[inventory]> o:saddle slot:1 because i want the equipped saddle to go directly into the first slot. But then when I narrate the - narrate <context.entity.flag[inventory]>, it doesn't include the saddle

vestal edge
#
on player right clicks entity with:!air:
- flag <context.entity> inventory:<context.entity.flag[inventory].include[<context.item>]>```
#

!T inventorytag.include

sly bluffBOT