Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scoreboard players set #total blah 0
- scoreboard players set #count blah 0
- execute store result score #slot blah store success score #success blah run data get block ~ ~ ~ Items[0].Slot
- 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
- 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
- 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
- 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
- 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
- scoreboard players operation #total blah += #count blah
- scoreboard players set #count blah 0
- execute store result score #slot blah run data get block ~ ~ ~ Items[1].Slot
- 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
- 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
- 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
- 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
- scoreboard players operation #total blah += #count blah
- scoreboard players set #count blah 0
- execute store result score #slot blah run data get block ~ ~ ~ Items[2].Slot
- 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
- 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
- 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
- scoreboard players operation #total blah += #count blah
- scoreboard players set #count blah 0
- execute store result score #slot blah run data get block ~ ~ ~ Items[3].Slot
- 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
- 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
- scoreboard players operation #total blah += #count blah
- scoreboard players set #count blah 0
- execute store result score #slot blah run data get block ~ ~ ~ Items[4].Slot
- 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
- scoreboard players operation #total blah += #count blah
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement