From 681c52989f3176b2ac0aed3a4957e495dee06fa6 Mon Sep 17 00:00:00 2001 From: Atomic Junky <67459553+atomic-junky@users.noreply.github.com> Date: Sat, 4 May 2024 02:29:13 +0200 Subject: [PATCH] feat: Add an uninstall function #1 --- .../src/data/tasty_supplies/functions/uninstall.mcfunction | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tasty_supplies/src/data/tasty_supplies/functions/uninstall.mcfunction diff --git a/tasty_supplies/src/data/tasty_supplies/functions/uninstall.mcfunction b/tasty_supplies/src/data/tasty_supplies/functions/uninstall.mcfunction new file mode 100644 index 0000000..6015e7b --- /dev/null +++ b/tasty_supplies/src/data/tasty_supplies/functions/uninstall.mcfunction @@ -0,0 +1,2 @@ +execute as @e[type=minecraft:interaction] if data entity @s {Tags:["cutting_board_interaction"]} run kill @s +execute as @e[type=minecraft:item_display] if data entity @s item.components{"minecraft:custom_data": {tags:["cutting_board"]}} at @s as @e[type=minecraft:item_display, distance=..1] run kill @s \ No newline at end of file