How to Stop Players from Dropping Items in Minecraft (1.19.4+)

Channel:
Subscribers:
33,700
Published on ● Video Link: https://www.youtube.com/watch?v=-IOWBzI3sg0



Minecraft
Game:
Minecraft (2011)
Category:
Tutorial
Duration: 2:11
7,777 views
518


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







Tags:
Minecraft
how to
tutorial
command block
prevent players from dropping items
stop dropping items
item drops



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.