Topic category: Help with MCreator software
Hello everyone, today I got the idea of making a mod about the manga/anime of Dr. Stone, and I think its going pretty good, at least with the basic idea (I might make a post once I solve this) but I'm having problems getting rid of a mob with procedures, since the Entity referenced is the player.
Explanation: I have a mob that represents the pretrified people, it doesn't do nothing but stand there. But once right-clicked with a bottle full of Nitic Acid, it triggers a procedure that changes the nitric acid's bottle for an empty one, and summons a villager at the coordinates. I tried to put "despawn the entity" and related options, but since the entity who clicked the statue is the player, it tries to despawn or kill them, not the statue. I even tried to call a different procedure at the location, but apparently the entity is inherited because it still killed me.
It would be easier if I was using a block instead of an entity, the options to delete them based on their position are right there in the menu, but there is nothing like that for the entities. I consider putting a global variable that records the X Y and Z of the statue with each tick, but that's a bit too far advanced from what I know how to do, and there will be multiple statues at the same time in the world, so it wouldn't work either way.
Does anyone know some combination of procedure options that I'm missing or maybe a code that I could use to delete that one specific statue that I just clicked, instead of me? Thank you in advance, have a good night.