Topic category: Help with Minecraft modding (Java Edition)
I am new to Mcreator and I have figured out a lot of stuff on my own and by watching videos but I am still having a lot of problems with my custom enchantment. My enchantment is supposed to make any mob that hits you named a random name out of ten names, but when I test it out nothing is happening. I don't know why but I pretty much don't know what I am doing, I have just been combining things I get from other places and none of it turns out right. If it matters the enchantment can only be put on boots. I got a reply not that long ago when I accidently posted it in the wrong category(oops) but I didn't understand the answer that much. They said to change my global trigger to entity is hurt but I can't find that, only before entity is hurt. Also I am still kind of overwhelmed with all this code and if someone could help that would be great. I would post a pic of my code if I could but the guidelines say not to.
use the Set display name of Event Target Entity to:
block found on Entity Management
and use Random 0, 1 <= 0.10 for the 10%
I figured out that my code works but not in the right way. It only works if I get a mob to wear the boots and then hit the mob. How do I change what entity it is changing the name of because my only option in the "Set display name of entity/target:" is Entity/Target but how do I change the target.
well you could try with Entity Tuck Update
wait sorry I just re-read your post, so use Entity is hurt
if event target entity is type:MOB
set Display name of event target entity to:
etc etc