Hey.
I need some help about items detection.
I need my program to detect how many blocks have been set in a chest by a player, in order to give him points (depending of the type of block, but that's not the problem).
But actually, it only counts one block, event if I put stacks and stacks, with this part of code :
And if I put this :
It adds all the blocks of MC...
So I'm stuck and I don't know how to fix this, could you help me ? please
I need some help about items detection.
I need my program to detect how many blocks have been set in a chest by a player, in order to give him points (depending of the type of block, but that's not the problem).
But actually, it only counts one block, event if I put stacks and stacks, with this part of code :
code_language.skript:
on store:
if event-item is coal block:
add 1 to {coal.%player%}
And if I put this :
code_language.skript:
on store:
set {test} to amount of blocks
if event-item is coal block:
add {test} to {coal.%player%}
So I'm stuck and I don't know how to fix this, could you help me ? please