|
|
@@ -40,46 +40,46 @@ execute if score @s item_slot matches 102 run data modify entity @e[type=item,ta
|
|
|
execute if score @s item_slot matches 103 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:103b}]
|
|
|
execute if score @s item_slot matches -106 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:-106b}]
|
|
|
|
|
|
-execute if score @s item_slot matches 0 run replaceitem entity @s hotbar.0 air
|
|
|
-execute if score @s item_slot matches 1 run replaceitem entity @s hotbar.1 air
|
|
|
-execute if score @s item_slot matches 2 run replaceitem entity @s hotbar.2 air
|
|
|
-execute if score @s item_slot matches 3 run replaceitem entity @s hotbar.3 air
|
|
|
-execute if score @s item_slot matches 4 run replaceitem entity @s hotbar.4 air
|
|
|
-execute if score @s item_slot matches 5 run replaceitem entity @s hotbar.5 air
|
|
|
-execute if score @s item_slot matches 6 run replaceitem entity @s hotbar.6 air
|
|
|
-execute if score @s item_slot matches 7 run replaceitem entity @s hotbar.7 air
|
|
|
-execute if score @s item_slot matches 8 run replaceitem entity @s hotbar.8 air
|
|
|
-execute if score @s item_slot matches 9 run replaceitem entity @s inventory.0 air
|
|
|
-execute if score @s item_slot matches 10 run replaceitem entity @s inventory.1 air
|
|
|
-execute if score @s item_slot matches 11 run replaceitem entity @s inventory.2 air
|
|
|
-execute if score @s item_slot matches 12 run replaceitem entity @s inventory.3 air
|
|
|
-execute if score @s item_slot matches 13 run replaceitem entity @s inventory.4 air
|
|
|
-execute if score @s item_slot matches 14 run replaceitem entity @s inventory.5 air
|
|
|
-execute if score @s item_slot matches 15 run replaceitem entity @s inventory.6 air
|
|
|
-execute if score @s item_slot matches 16 run replaceitem entity @s inventory.7 air
|
|
|
-execute if score @s item_slot matches 17 run replaceitem entity @s inventory.8 air
|
|
|
-execute if score @s item_slot matches 18 run replaceitem entity @s inventory.9 air
|
|
|
-execute if score @s item_slot matches 19 run replaceitem entity @s inventory.10 air
|
|
|
-execute if score @s item_slot matches 20 run replaceitem entity @s inventory.11 air
|
|
|
-execute if score @s item_slot matches 21 run replaceitem entity @s inventory.12 air
|
|
|
-execute if score @s item_slot matches 22 run replaceitem entity @s inventory.13 air
|
|
|
-execute if score @s item_slot matches 23 run replaceitem entity @s inventory.14 air
|
|
|
-execute if score @s item_slot matches 24 run replaceitem entity @s inventory.15 air
|
|
|
-execute if score @s item_slot matches 25 run replaceitem entity @s inventory.16 air
|
|
|
-execute if score @s item_slot matches 26 run replaceitem entity @s inventory.17 air
|
|
|
-execute if score @s item_slot matches 27 run replaceitem entity @s inventory.18 air
|
|
|
-execute if score @s item_slot matches 28 run replaceitem entity @s inventory.19 air
|
|
|
-execute if score @s item_slot matches 29 run replaceitem entity @s inventory.20 air
|
|
|
-execute if score @s item_slot matches 30 run replaceitem entity @s inventory.21 air
|
|
|
-execute if score @s item_slot matches 31 run replaceitem entity @s inventory.22 air
|
|
|
-execute if score @s item_slot matches 32 run replaceitem entity @s inventory.23 air
|
|
|
-execute if score @s item_slot matches 33 run replaceitem entity @s inventory.24 air
|
|
|
-execute if score @s item_slot matches 34 run replaceitem entity @s inventory.25 air
|
|
|
-execute if score @s item_slot matches 35 run replaceitem entity @s inventory.26 air
|
|
|
-execute if score @s item_slot matches 100 run replaceitem entity @s armor.feet air
|
|
|
-execute if score @s item_slot matches 101 run replaceitem entity @s armor.legs air
|
|
|
-execute if score @s item_slot matches 102 run replaceitem entity @s armor.chest air
|
|
|
-execute if score @s item_slot matches 103 run replaceitem entity @s armor.head air
|
|
|
-execute if score @s item_slot matches -106 run replaceitem entity @s weapon.offhand air
|
|
|
+execute if score @s item_slot matches 0 run item replace entity @s hotbar.0 with air
|
|
|
+execute if score @s item_slot matches 1 run item replace entity @s hotbar.1 with air
|
|
|
+execute if score @s item_slot matches 2 run item replace entity @s hotbar.2 with air
|
|
|
+execute if score @s item_slot matches 3 run item replace entity @s hotbar.3 with air
|
|
|
+execute if score @s item_slot matches 4 run item replace entity @s hotbar.4 with air
|
|
|
+execute if score @s item_slot matches 5 run item replace entity @s hotbar.5 with air
|
|
|
+execute if score @s item_slot matches 6 run item replace entity @s hotbar.6 with air
|
|
|
+execute if score @s item_slot matches 7 run item replace entity @s hotbar.7 with air
|
|
|
+execute if score @s item_slot matches 8 run item replace entity @s hotbar.8 with air
|
|
|
+execute if score @s item_slot matches 9 run item replace entity @s inventory.0 with air
|
|
|
+execute if score @s item_slot matches 10 run item replace entity @s inventory.1 with air
|
|
|
+execute if score @s item_slot matches 11 run item replace entity @s inventory.2 with air
|
|
|
+execute if score @s item_slot matches 12 run item replace entity @s inventory.3 with air
|
|
|
+execute if score @s item_slot matches 13 run item replace entity @s inventory.4 with air
|
|
|
+execute if score @s item_slot matches 14 run item replace entity @s inventory.5 with air
|
|
|
+execute if score @s item_slot matches 15 run item replace entity @s inventory.6 with air
|
|
|
+execute if score @s item_slot matches 16 run item replace entity @s inventory.7 with air
|
|
|
+execute if score @s item_slot matches 17 run item replace entity @s inventory.8 with air
|
|
|
+execute if score @s item_slot matches 18 run item replace entity @s inventory.9 with air
|
|
|
+execute if score @s item_slot matches 19 run item replace entity @s inventory.10 with air
|
|
|
+execute if score @s item_slot matches 20 run item replace entity @s inventory.11 with air
|
|
|
+execute if score @s item_slot matches 21 run item replace entity @s inventory.12 with air
|
|
|
+execute if score @s item_slot matches 22 run item replace entity @s inventory.13 with air
|
|
|
+execute if score @s item_slot matches 23 run item replace entity @s inventory.14 with air
|
|
|
+execute if score @s item_slot matches 24 run item replace entity @s inventory.15 with air
|
|
|
+execute if score @s item_slot matches 25 run item replace entity @s inventory.16 with air
|
|
|
+execute if score @s item_slot matches 26 run item replace entity @s inventory.17 with air
|
|
|
+execute if score @s item_slot matches 27 run item replace entity @s inventory.18 with air
|
|
|
+execute if score @s item_slot matches 28 run item replace entity @s inventory.19 with air
|
|
|
+execute if score @s item_slot matches 29 run item replace entity @s inventory.20 with air
|
|
|
+execute if score @s item_slot matches 30 run item replace entity @s inventory.21 with air
|
|
|
+execute if score @s item_slot matches 31 run item replace entity @s inventory.22 with air
|
|
|
+execute if score @s item_slot matches 32 run item replace entity @s inventory.23 with air
|
|
|
+execute if score @s item_slot matches 33 run item replace entity @s inventory.24 with air
|
|
|
+execute if score @s item_slot matches 34 run item replace entity @s inventory.25 with air
|
|
|
+execute if score @s item_slot matches 35 run item replace entity @s inventory.26 with air
|
|
|
+execute if score @s item_slot matches 100 run item replace entity @s armor.feet with air
|
|
|
+execute if score @s item_slot matches 101 run item replace entity @s armor.legs with air
|
|
|
+execute if score @s item_slot matches 102 run item replace entity @s armor.chest with air
|
|
|
+execute if score @s item_slot matches 103 run item replace entity @s armor.head with air
|
|
|
+execute if score @s item_slot matches -106 run item replace entity @s weapon.offhand with air
|
|
|
|
|
|
scoreboard players reset @s item_slot
|