okay so i have a spawner block that has a entity inside to check distance and store information for the spawner.
anyways, i am having troubles with only checking the distance of each spawnrule. just the same concept of saying in command execute as @e at @e[type=mrleefy:spawnrule] unless entity @e[type=mrleefy:blazestill, r=50] run summon mrleefy:blazestill ~~1~
okay so this will check if any stackable entities are already nearby, unless there is one it will summon a new one. This is the spawning logic to get new one to show up if none is created already.
Now i need to do the same thing, but opposite with the api.
i need it like this somehow>>
execute as @e at @e[type=mrleefy:spawnrule] if entity @e[type=mrleefy:blazestill, r=50] run change nametag to +1.
this is essentially the logic im trying to follow for the api.
how do i do this?
attached is the latest code.
visual to explain:
they(spawnrule invisible entity inside block) shouldn't add +1 to the same stackable entity if they are further then 50 blocks away from itself. it should be local to itself like the commands are with execute as.