How to apply names to mobs with enchantments.

Started by Yaaaaaaaaaaay on

Topic category: Help with modding (Java Edition)

Last seen on 02:15, 10. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to apply names to mobs with enchantments.

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.

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
use the Set display name of…
Fri, 10/08/2021 - 00:28

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%

Last seen on 02:15, 10. Dec 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured out that my code…
Fri, 10/08/2021 - 22:12

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. 

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well you could try with…
Fri, 10/08/2021 - 22:33

well you could try with Entity Tuck Update

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait sorry I just re-read…
Fri, 10/08/2021 - 22:34

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