Code:
Im trying to make a way to raise the "energy" based on NBT tags everytime someone break a coal ore.
Im thinking the NBT is getting pulled as text rather than the number
Im using SkBee
Code:
on mine:
if player is holding any pickaxe:
if block is coal ore:
set {_energy} to tag "chargable;energy" of nbt of player's tool
set {_energy} to rounded {_energy}
make {_energy} a number
add 20 to {_energy}
add "{chargable: {energy: {_energy}}}" to nbt of player's tool
Im trying to make a way to raise the "energy" based on NBT tags everytime someone break a coal ore.
Im thinking the NBT is getting pulled as text rather than the number
Im using SkBee