From 4d5a4df288c95ad74386cfbaaaf0a6027ff81c19 Mon Sep 17 00:00:00 2001 From: Emmie <65347035+DBTDerpbox@users.noreply.github.com> Date: Tue, 4 Jun 2024 06:28:05 -0500 Subject: [PATCH] Fix smallinv items dropping on the ground --- .../data/lem.base/functions/disconnect/remove/game.mcfunction | 3 +++ .../data/lem.base/functions/game/player/respawn/run.mcfunction | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction b/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction index 5dba6ecf0..8754506b3 100644 --- a/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction +++ b/world/datapacks/lem.base/data/lem.base/functions/disconnect/remove/game.mcfunction @@ -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}}}}] diff --git a/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction b/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction index d6e41e9f9..c72f3733e 100644 --- a/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction +++ b/world/datapacks/lem.base/data/lem.base/functions/game/player/respawn/run.mcfunction @@ -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