Started by
SoKoi-
on
Topic category: Help with Minecraft modding (Java Edition)
Is there a way to make it so when a player clicks a button in a gui, it makes the player only able to kill and tame certain mobs. Like if the player chose between good and evil, and chose good. Is there a way to make it where they can only kill aggressive mobs and not passive ones?
Hmmmmm what you could do is set up an advancement and when you get the advancement you can do damage to certain mobs but I’m not sure how to do mobs part just the advancement
Awesome! That's half of the mechanic and another mechanic done. Now to figure out the mob part...
Wait I think I got it. I'll just make it where they can be killed they just cant be tamed or captured, since I have an item that can capture the mob specifically.
Cancel the death event if source entity has NBT tag.