How to Stop Players from Dropping Items in Minecraft (1.19.4+)
Stop players from dropping all or a specific item with just 3 commands!
π‘ Code:
(Code for all items)
execute as @e[type=item] at @s on origin run data modify entity @e[type=item,sort=nearest,limit=1] Owner set from entity @s UUID
execute as @e[type=item] run data modify entity @s PickupDelay set value 0s
execute as @e[type=item] at @s on origin run tp @e[type=item,sort=nearest,limit=1] @s
(Code for one specific item)
execute as @e[type=item,nbt={Item:{tag:{NoPickup:1b}}}] at @s on origin run data modify entity @e[type=item,sort=nearest,limit=1] Owner set from entity @s UUID
execute as @e[type=item,nbt={Item:{tag:{NoPickup:1b}}}] run data modify entity @s PickupDelay set value 0s
execute as @e[type=item,nbt={Item:{tag:{NoPickup:1b}}}] at @s on origin run tp @e[type=item,sort=nearest,limit=1] @s
π΅ Discord & Other Links: https://linktr.ee/CloudWolfMC
π» Website: https://cloudwolfyt.github.io
Other Videos By Cloud Wolf
Other Statistics
Minecraft Statistics For Cloud Wolf
Currently, Cloud Wolf has 8,312,436 views for Minecraft across 523 videos. There's over 3 days worth of watchable video for Minecraft published on his channel, or 95.89% of the total watchable video on Cloud Wolf's YouTube channel.