pop_slot.mcfunction 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. execute if block 1000 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 0
  2. execute if block 1000 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  3. execute if block 1000 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 1
  4. execute if block 1000 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  5. execute if block 1000 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 2
  6. execute if block 1000 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  7. execute if block 1000 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 3
  8. execute if block 1000 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  9. execute if block 1001 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 4
  10. execute if block 1001 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  11. execute if block 1001 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 5
  12. execute if block 1001 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  13. execute if block 1001 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 6
  14. execute if block 1001 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  15. execute if block 1001 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 7
  16. execute if block 1001 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  17. execute if block 1002 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 8
  18. execute if block 1002 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  19. execute if block 1002 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 9
  20. execute if block 1002 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  21. execute if block 1002 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 10
  22. execute if block 1002 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  23. execute if block 1002 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 11
  24. execute if block 1002 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  25. execute if block 1003 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 12
  26. execute if block 1003 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  27. execute if block 1003 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 13
  28. execute if block 1003 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  29. execute if block 1003 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 14
  30. execute if block 1003 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  31. execute if block 1003 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 15
  32. execute if block 1003 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  33. execute if block 1004 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 16
  34. execute if block 1004 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  35. execute if block 1004 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 17
  36. execute if block 1004 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  37. execute if block 1004 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 18
  38. execute if block 1004 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  39. execute if block 1004 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 19
  40. execute if block 1004 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  41. execute if block 1005 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 20
  42. execute if block 1005 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  43. execute if block 1005 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 21
  44. execute if block 1005 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  45. execute if block 1005 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 22
  46. execute if block 1005 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  47. execute if block 1005 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 23
  48. execute if block 1005 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  49. execute if block 1006 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 24
  50. execute if block 1006 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  51. execute if block 1006 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 25
  52. execute if block 1006 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  53. execute if block 1006 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 26
  54. execute if block 1006 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  55. execute if block 1006 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 27
  56. execute if block 1006 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  57. execute if block 1007 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 28
  58. execute if block 1007 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  59. execute if block 1007 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 29
  60. execute if block 1007 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  61. execute if block 1007 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 30
  62. execute if block 1007 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  63. execute if block 1007 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 31
  64. execute if block 1007 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  65. execute if block 1008 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 32
  66. execute if block 1008 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  67. execute if block 1008 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 33
  68. execute if block 1008 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  69. execute if block 1008 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 34
  70. execute if block 1008 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  71. execute if block 1008 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 35
  72. execute if block 1008 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  73. execute if block 1009 0 5001 minecraft:bedrock run scoreboard players set @s item_slot 100
  74. execute if block 1009 0 5001 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  75. execute if block 1009 0 5002 minecraft:bedrock run scoreboard players set @s item_slot 101
  76. execute if block 1009 0 5002 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  77. execute if block 1009 0 5003 minecraft:bedrock run scoreboard players set @s item_slot 102
  78. execute if block 1009 0 5003 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  79. execute if block 1009 0 5004 minecraft:bedrock run scoreboard players set @s item_slot 103
  80. execute if block 1009 0 5004 minecraft:bedrock at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item
  81. execute store result score #fill_count temp run fill 1000 0 5001 1009 0 5004 air
  82. scoreboard players operation #fill_count temp %= #const_2 temp
  83. execute if score #fill_count temp matches 1 run scoreboard players set @s item_slot -106
  84. execute if score #fill_count temp matches 1 at @e[type=armor_stand,tag=dead_marker,limit=1] run function item:pop_slot/pop_item