Started by
Jerson123
on
Topic category: Help with Minecraft modding (Java Edition)
for example creating a creeper that can only be damaged with the diamond sword, and when hitting it with another weapon such as the iron sword or the gold sword, or the wooden sword, etc. it does not suffer any damage
use nbt tags I think
No me sirve bro
??
it does not help me, I would like you to tell me the specific procedure of how to make a mod only die with a specific article
I'm not sure, but I think you could make the entity invisible to player attacks in general. For your item, you create a procedure in the "when mob is hit with item" section where you make it so it deals with damage to the provided entity.
I think do when The entity is hurt then check if the player has your own sword then heal up to max if it wasn't the right sword