select_item.mcfunction 9.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. execute if score @s item_slot matches 0 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:0b}]
  2. execute if score @s item_slot matches 1 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:1b}]
  3. execute if score @s item_slot matches 2 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:2b}]
  4. execute if score @s item_slot matches 3 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:3b}]
  5. execute if score @s item_slot matches 4 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:4b}]
  6. execute if score @s item_slot matches 5 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:5b}]
  7. execute if score @s item_slot matches 6 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:6b}]
  8. execute if score @s item_slot matches 7 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:7b}]
  9. execute if score @s item_slot matches 8 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:8b}]
  10. execute if score @s item_slot matches 9 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:9b}]
  11. execute if score @s item_slot matches 10 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:10b}]
  12. execute if score @s item_slot matches 11 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:11b}]
  13. execute if score @s item_slot matches 12 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:12b}]
  14. execute if score @s item_slot matches 13 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:13b}]
  15. execute if score @s item_slot matches 14 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:14b}]
  16. execute if score @s item_slot matches 15 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:15b}]
  17. execute if score @s item_slot matches 16 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:16b}]
  18. execute if score @s item_slot matches 17 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:17b}]
  19. execute if score @s item_slot matches 18 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:18b}]
  20. execute if score @s item_slot matches 19 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:19b}]
  21. execute if score @s item_slot matches 20 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:20b}]
  22. execute if score @s item_slot matches 21 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:21b}]
  23. execute if score @s item_slot matches 22 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:22b}]
  24. execute if score @s item_slot matches 23 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:23b}]
  25. execute if score @s item_slot matches 24 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:24b}]
  26. execute if score @s item_slot matches 25 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:25b}]
  27. execute if score @s item_slot matches 26 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:26b}]
  28. execute if score @s item_slot matches 27 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:27b}]
  29. execute if score @s item_slot matches 28 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:28b}]
  30. execute if score @s item_slot matches 29 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:29b}]
  31. execute if score @s item_slot matches 30 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:30b}]
  32. execute if score @s item_slot matches 31 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:31b}]
  33. execute if score @s item_slot matches 32 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:32b}]
  34. execute if score @s item_slot matches 33 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:33b}]
  35. execute if score @s item_slot matches 34 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:34b}]
  36. execute if score @s item_slot matches 35 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:35b}]
  37. execute if score @s item_slot matches 100 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:100b}]
  38. execute if score @s item_slot matches 101 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:101b}]
  39. execute if score @s item_slot matches 102 run data modify entity @e[type=item,tag=LockTempItem,limit=1] Item set from entity @s Inventory[{Slot:102b}]
  40. 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}]
  41. 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}]
  42. execute if score @s item_slot matches 0 run replaceitem entity @s hotbar.0 air
  43. execute if score @s item_slot matches 1 run replaceitem entity @s hotbar.1 air
  44. execute if score @s item_slot matches 2 run replaceitem entity @s hotbar.2 air
  45. execute if score @s item_slot matches 3 run replaceitem entity @s hotbar.3 air
  46. execute if score @s item_slot matches 4 run replaceitem entity @s hotbar.4 air
  47. execute if score @s item_slot matches 5 run replaceitem entity @s hotbar.5 air
  48. execute if score @s item_slot matches 6 run replaceitem entity @s hotbar.6 air
  49. execute if score @s item_slot matches 7 run replaceitem entity @s hotbar.7 air
  50. execute if score @s item_slot matches 8 run replaceitem entity @s hotbar.8 air
  51. execute if score @s item_slot matches 9 run replaceitem entity @s inventory.0 air
  52. execute if score @s item_slot matches 10 run replaceitem entity @s inventory.1 air
  53. execute if score @s item_slot matches 11 run replaceitem entity @s inventory.2 air
  54. execute if score @s item_slot matches 12 run replaceitem entity @s inventory.3 air
  55. execute if score @s item_slot matches 13 run replaceitem entity @s inventory.4 air
  56. execute if score @s item_slot matches 14 run replaceitem entity @s inventory.5 air
  57. execute if score @s item_slot matches 15 run replaceitem entity @s inventory.6 air
  58. execute if score @s item_slot matches 16 run replaceitem entity @s inventory.7 air
  59. execute if score @s item_slot matches 17 run replaceitem entity @s inventory.8 air
  60. execute if score @s item_slot matches 18 run replaceitem entity @s inventory.9 air
  61. execute if score @s item_slot matches 19 run replaceitem entity @s inventory.10 air
  62. execute if score @s item_slot matches 20 run replaceitem entity @s inventory.11 air
  63. execute if score @s item_slot matches 21 run replaceitem entity @s inventory.12 air
  64. execute if score @s item_slot matches 22 run replaceitem entity @s inventory.13 air
  65. execute if score @s item_slot matches 23 run replaceitem entity @s inventory.14 air
  66. execute if score @s item_slot matches 24 run replaceitem entity @s inventory.15 air
  67. execute if score @s item_slot matches 25 run replaceitem entity @s inventory.16 air
  68. execute if score @s item_slot matches 26 run replaceitem entity @s inventory.17 air
  69. execute if score @s item_slot matches 27 run replaceitem entity @s inventory.18 air
  70. execute if score @s item_slot matches 28 run replaceitem entity @s inventory.19 air
  71. execute if score @s item_slot matches 29 run replaceitem entity @s inventory.20 air
  72. execute if score @s item_slot matches 30 run replaceitem entity @s inventory.21 air
  73. execute if score @s item_slot matches 31 run replaceitem entity @s inventory.22 air
  74. execute if score @s item_slot matches 32 run replaceitem entity @s inventory.23 air
  75. execute if score @s item_slot matches 33 run replaceitem entity @s inventory.24 air
  76. execute if score @s item_slot matches 34 run replaceitem entity @s inventory.25 air
  77. execute if score @s item_slot matches 35 run replaceitem entity @s inventory.26 air
  78. execute if score @s item_slot matches 100 run replaceitem entity @s armor.feet air
  79. execute if score @s item_slot matches 101 run replaceitem entity @s armor.legs air
  80. execute if score @s item_slot matches 102 run replaceitem entity @s armor.chest air
  81. execute if score @s item_slot matches 103 run replaceitem entity @s armor.head air
  82. execute if score @s item_slot matches -106 run replaceitem entity @s weapon.offhand air
  83. scoreboard players reset @s item_slot