Topic category: Help with modding (Java Edition)
Hi, I was trying to make sort of a soldier mob, which you can decide who it belongs to and who will it attack. I initially tried to do it through IDs made with NBT tags, by checking whether the other "soldier" had matching IDs (So 2 and 2) or different (5 and 72). Issue is, attack conditions don't support both event/target entity and source entity. I also tried taming, but tamed soldiers will attack other tamed soldiers... Is there a way to do this?
Basically I want Soldier A to attack Soldier B if I wish to, but I also want to be able to set Soldier B as an ally troop (without having to interact myself with Soldier B such as in hitting them or viceversa)