Hello!
I don't know if it's possible, what I want is a command where the command I wrote will send a mesage showing how many foxes there are with the name "&cForest Fox" in the 200 block radius of player.
I don't know if it's possible, what I want is a command where the command I wrote will send a mesage showing how many foxes there are with the name "&cForest Fox" in the 200 block radius of player.
Code:
command /enfox <text>:
trigger:
if player is op:
if arg 1 is "ext":
spawn a fox at location of player
set the display name of the spawned fox to "&cForest Fox"
if arg 1 is "list":
loop all entities in radius 200 around player:
if loop-entity is fox named "&cForest Fox":
message "&afound!"
else:
message "&cfailed!"