Skip to content

Commit

Permalink
Fix smallinv items dropping on the ground
Browse files Browse the repository at this point in the history
  • Loading branch information
DBTDerpbox committed Jun 4, 2024
1 parent 5094dec commit 4d5a4df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ function lem.base:ui/playerbar/load

##Check for Spectator Mobs to remove
function lem.base:game/spectator/hide/offline/check

##Delete dropped smallinv items
execute if score #Store lem.smallinv matches 1 run kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{SmallInv:1}}}}]
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tag @s add notitle
function lem.base:game/player/respawn/delayrun/check

##Delete dropped smallinv items
execute if score #Store lem.smallinv matches 1 run kill @e[type=item,nbt={Item:{tag:{SmallInv:1}}}]
execute if score #Store lem.smallinv matches 1 run kill @e[type=item,nbt={Item:{components:{"minecraft:custom_data":{SmallInv:1}}}}]

##Run functions for addons
function #lem.base:game/player/respawn/run
Expand Down

0 comments on commit 4d5a4df

Please sign in to comment.