I want it to where players can only place a maximum of blocks, but I cant figure out how to lay it out, this is what I have so far but it doesnt stop players from placing over the max.
code_language.skript:
on place:
set {owner::%event-block%} to player
if event-block is spruce wood planks:
if {%player%.wood.placed} is equal to {%player%.max.wood}:
cancel event
send "&6%{%player%.wood.placed}%&7/&6%{%player%.max.wood}% &7Max Wood Reached!"
stop
if {%player%.wood.placed} is not equal to {%player%.max.wood}:
set {%player%.wood.placed} to {%player%.wood.placed} + 1
send "&6%{%player%.wood.placed}%&7/&6%{%player%.max.wood}% &7Wood Placed"
stop