Advertisement
tryashtar

hopper thing 2

Jan 25th, 2019
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. scoreboard players set #total blah 0
  2.  
  3. scoreboard players set #count blah 0
  4. execute store result score #slot blah store success score #success blah run data get block ~ ~ ~ Items[0].Slot
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. scoreboard players operation #total blah += #count blah
  11.  
  12. scoreboard players set #count blah 0
  13. execute store result score #slot blah run data get block ~ ~ ~ Items[1].Slot
  14. 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
  15. 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
  16. 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
  17. 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
  18. scoreboard players operation #total blah += #count blah
  19.  
  20. scoreboard players set #count blah 0
  21. execute store result score #slot blah run data get block ~ ~ ~ Items[2].Slot
  22. 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
  23. 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
  24. 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
  25. scoreboard players operation #total blah += #count blah
  26.  
  27. scoreboard players set #count blah 0
  28. execute store result score #slot blah run data get block ~ ~ ~ Items[3].Slot
  29. 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
  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[3].Count
  31. scoreboard players operation #total blah += #count blah
  32.  
  33. scoreboard players set #count blah 0
  34. execute store result score #slot blah run data get block ~ ~ ~ Items[4].Slot
  35. 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
  36. scoreboard players operation #total blah += #count blah
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement