code_language.skript:
on arm swing:
set {_type} to type of player's exact target block
int tag "MiningPower" of nbt compound of player's tool >= {power::%{_type}%}
tag "MiningType" of nbt compound of player's tool = {tooltype::%{_type}%}
if tag "custom;BlockHealth" of nbt compound of player's exact target block is not set:
set tag "custom;BlockHealth" of nbt compound of player's exact target block to {maxHealth::%{_type}%}
broadcast "Max Health Variable: %{maxHealth::%{_type}%}%"
broadcast "Max Health Tag: %tag "custom;BlockHealth" of nbt compound of player's exact target block%"
broadcast pretty nbt of nbt compound of player's exact target block
Posted by: xicad from the skUnity Discord. View the thread on skUnity Discord here