#Item always on player

1 messages · Page 1 of 1 (latest)

opal nova
#

Is there a way to have an item always stay on the player even on death, and not have them drop it?

glossy quiver
#

I think yes theres like item components

#

I know theres like lock in slot and lock in inventory etc but i think keep on death is one aswell

#

Ill do a quick search to double check but im pretty sure yes if not then use /replaceitem command constantly

#

If its not in the slot ofcourse

#

Yeah add {"minecraft:keep_on_death":{}} to /replaceitem or /give (maybe only on /replaceitem idk)

opal nova
#

Can you add that and the one that makes you not able to move it?

glossy quiver
#

Yes you can stack them

#

I can't remember how exactly but ill search jt up rq

#

/give @s iron_shovel 1 1 {"minecraft:keep_on_death":{}},"minecraft:item_lock":{"mode":"lock_in_slot"}} like this i think

#

Or something similar to that sorry im dumb i haven't done commands in months now 😅

glossy quiver
#

Yeah i can never really understand that alien tech though i prefer cold hard manual research

celest spire
#

wut!? it has the example commands on the page lol

#

i wrote them

glossy quiver
#

Eh?

celest spire
#

the wiki page for nbt commands was just updated with more example commands for easier understanding

#

like this:

# Give all players a stack of oak planks that can be placed on dirt, grass, and cobblestone, and locks in inventory: 

/give @a oak_planks 64 0 {"minecraft:can_place_on":{"blocks":["dirt", "grass", "cobblestone"]},"minecraft:item_lock":{"mode":"lock_in_inventory"}}
# Give all players a bow that locks in a specific inventory slot and is kept on death: 

/give @a bow 1 0 {"minecraft:item_lock":{ "mode": "lock_in_slot" }, "minecraft:keep_on_death":{}}
# Give self a stone shovel that can only dig up gravel and sand, and locks in inventory: 

/give @s stone_shovel 1 0 {"minecraft:can_destroy":{"blocks":["dirt", "sand"]},"minecraft:item_lock":{ "mode": "lock_in_inventory" }}
glossy quiver
#

Ugh

hollow mirage
#

@celest spire can you help with the horror one please

opal nova
opal nova
#

or elytra on the torso

celest spire