Hi so I'm trying to count a certain block type within a specified area then set a variable to the amount of blocks for later use.
I've tried to find a method to do this myself but after an hour or so of trying with... lots of errors, I've been unable.
I literally just need to get the number of trapped chests within the area and save it to the variable.
Any help would be greatly appreciated
I've tried to find a method to do this myself but after an hour or so of trying with... lots of errors, I've been unable.
Code:
command /cheststuff:
trigger:
loop all blocks in radius 5 of player:
set {_chestcount} to amount of minecraft:trapped_chest in loop blocks
I literally just need to get the number of trapped chests within the area and save it to the variable.
Any help would be greatly appreciated