Advertisement
tryashtar

hopper thing

Jan 25th, 2019
779
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. scoreboard players set #total blah 0
  2.  
  3. execute store result score #slot blah store success score #success blah run data get block ~ ~ ~ Items[0].Slot
  4. execute if score #success blah matches 1 if score #slot blah matches 0 if block ~ ~ ~ hopper{Items:[{Slot:0b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[0].Count
  5. execute if score #slot blah matches 1 if block ~ ~ ~ hopper{Items:[{Slot:1b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[0].Count
  6. execute if score #slot blah matches 2 if block ~ ~ ~ hopper{Items:[{Slot:2b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[0].Count
  7. execute if score #slot blah matches 3 if block ~ ~ ~ hopper{Items:[{Slot:3b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[0].Count
  8. execute if score #slot blah matches 4 if block ~ ~ ~ hopper{Items:[{Slot:4b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[0].Count
  9. scoreboard players operation #total blah += #count blah
  10.  
  11. execute store result score #slot blah run data get block ~ ~ ~ Items[1].Slot
  12. execute if score #slot blah matches 1 if block ~ ~ ~ hopper{Items:[{Slot:1b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[1].Count
  13. execute if score #slot blah matches 2 if block ~ ~ ~ hopper{Items:[{Slot:2b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[1].Count
  14. execute if score #slot blah matches 3 if block ~ ~ ~ hopper{Items:[{Slot:3b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[1].Count
  15. execute if score #slot blah matches 4 if block ~ ~ ~ hopper{Items:[{Slot:4b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[1].Count
  16. scoreboard players operation #total blah += #count blah
  17.  
  18. execute store result score #slot blah run data get block ~ ~ ~ Items[2].Slot
  19. execute if score #slot blah matches 2 if block ~ ~ ~ hopper{Items:[{Slot:2b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[2].Count
  20. execute if score #slot blah matches 3 if block ~ ~ ~ hopper{Items:[{Slot:3b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[2].Count
  21. execute if score #slot blah matches 4 if block ~ ~ ~ hopper{Items:[{Slot:4b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[2].Count
  22. scoreboard players operation #total blah += #count blah
  23.  
  24. execute store result score #slot blah run data get block ~ ~ ~ Items[3].Slot
  25. execute if score #slot blah matches 3 if block ~ ~ ~ hopper{Items:[{Slot:3b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[3].Count
  26. execute if score #slot blah matches 4 if block ~ ~ ~ hopper{Items:[{Slot:4b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[3].Count
  27. scoreboard players operation #total blah += #count blah
  28.  
  29. execute store result score #slot blah run data get block ~ ~ ~ Items[4].Slot
  30. execute if score #slot blah matches 4 if block ~ ~ ~ hopper{Items:[{Slot:4b,id:"minecraft:diamond"}]} store result score #count blah run data get block ~ ~ ~ Items[4].Count
  31. scoreboard players operation #total blah += #count blah
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement