#(DRAGNIL68) how to remove a item from a players inventory with custom model data and name

19 messages · Page 1 of 1 (latest)

raven marten
#

basically I'm wandering if its possible to remove a item from a players inventory using its name and model data to find it

faint vortexBOT
#

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.

raven marten
#

!m remove

winged falconBOT
# raven marten !m remove
Cannot Specify Searched Mechanism

Multiple possible mechanisms: server.remove_recipes, NPCTag.remove_nickname, CuboidTag.remove_member, EntityTag.remove_effects, NPCTag.remove_assignment, ItemTag.remove_enchantments, EntityTag.remove_custom_effect, PlayerTag.remove_tab_completions, PlayerTag.remove_essentials_home, ItemTag.remove_attribute_modifiers, ItemTag.remove_charged_projectiles, EntityTag.remove_attribute_modifiers, DiscordChannelTag.remove_thread_member.

#
Possible Confusion

Did you mean to search for command remove?

raven marten
#

!m item remove

winged falconBOT
# raven marten !m item remove
Cannot Specify Searched Mechanism

Multiple possible mechanisms: ItemTag.map, ItemTag.book, ItemTag.flag, ItemTag.lock, ItemTag.lore, ItemTag.trim, ItemTag.color, ItemTag.hides, ItemTag.worth, EntityTag.item, ItemTag.display, ItemTag.display, ItemTag.raw_nbt, ItemTag.material, NPCTag.item_type, ItemTag.firework, ItemTag.flag_map, ItemTag.patterns, ItemTag.quantity, ItemTag.invisible, ...

#
Possible Confusion

Did you mean to search for command team?

meager sequoia
#

You're looking for

#

!c inventory

winged falconBOT
# meager sequoia !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...

raven marten
#

i know that much but how do you get it to clear only the item in there inventory with a specific custom model data

odd crown
#

Specific name as in script name or display name?

#

!paste

winged falconBOT
odd crown
#

Could you provide your script please so I'll get a better overview?

raven marten
#

I don't have a script because I'm asking if its possible and if so how

#

forget the custom model data