#Item always on player
1 messages · Page 1 of 1 (latest)
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)
Welcome to the second episode of the Item Components mini series! The series shows all the item components and how to use them!
💬 Join my Discord server for the world download! 💬 https://discord.gg/73KwUpRS4e
🔸Commands🔸
To hide the tag saying that the item can't be dropp...
Can you add that and the one that makes you not able to move it?
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 😅
you can always check the wiki
https://wiki.bedrock.dev/commands/giving-nbt-items#combining-nbt-components
Yeah i can never really understand that alien tech though i prefer cold hard manual research
Eh?
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" }}
Ugh
@celest spire can you help with the horror one please
So if I were to do something like make an iron helmet stick in my head slot and not be lost on death, how would I do that?
or elytra on the torso
# Give self an iron helmet that locks in head slot and is kept on death:
/replaceitem entity @s slot.armor.head 0 iron_helmet 1 0 {"item_lock":{"mode":"lock_in_slot"}, "keep_on_death":{}}
# Give self an elytra that locks in chest slot and is kept on death:
/replaceitem entity @s slot.armor.chest 0 elytra 1 0 {"item_lock":{"mode":"lock_in_slot"}, "keep_on_death":{}}