Editing Vanilla mobs.

Started by InfernoEverflame on

Topic category: Help with modding (Java Edition)

Last seen on 02:57, 8. Apr 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Editing Vanilla mobs.

hello To all MCreator developers and Mod creators, i was wondering how you could make a vanilla mob aggressive to a modded mob 

Ex: Zombie hostile to Villagers

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
are you willing to code?
Thu, 09/17/2020 - 03:22

are you willing to code?

Last seen on 02:57, 8. Apr 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sure  
Sat, 09/19/2020 - 08:00

sure

 

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. hook the net…
Sat, 09/19/2020 - 15:39

1. hook the net.minecraftforge.event.entity.living.LivingEvent.LivingUpdateEvent

2. if event entity is type mob, get the entity's targetTasks and add new task to target your mob

3. so that your event hook won't hog too much cpu time and won't add the same task infinite times, make a List<Integer> object to track the mob's entity ID you've modified. if that mob is already modified, skip adding the new task.

Last seen on 22:22, 6. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, I just looked at your…
Wed, 02/24/2021 - 19:10

Hi, I just looked at your comment ahznb, but some clear examples would really help for ppl who have no understanding on coding.

 

Could you please update it and give some examples? Hopefully you can, thanks!

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it will be quite difficult…
Fri, 02/26/2021 - 19:48

it will be quite difficult to explain if you can't code.

btw, you need to reply to my comment for me to be notified, otherwise i won't know you asked me a question

Last seen on 22:22, 6. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, didn't know about that…
Sat, 03/06/2021 - 15:43

Oh, didn't know about that feature, thanks.

 

Besides that; I might not know how to code, but that doesn't mean I wouldn't want to use any custom coding. I wouldn't mind at all!

When I said that it wasn't clear for people who don't know coding, I meant for people who specifically do not use coding at all and with that do not know where to place those lines. :P

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
which version mc are you…
Sun, 03/07/2021 - 14:23

which version mc are you modding?

Last seen on 22:22, 6. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
2020.5 Mcreator, 1.15.2…
Mon, 03/08/2021 - 20:03

2020.5 Mcreator, 1.15.2 Minecraft

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a new procedure. at…
Tue, 03/09/2021 - 06:55

create a new procedure. at the top of the procedure select global trigger "Entity joins world", like this:

https://cdn.discordapp.com/attachments/599250311852458006/818737157438439464/unknown.png

in the custom code snippet, enter the following:

((MobEntity)entity).targetSelector.addGoal(1, new NearestAttackableTargetGoal((MobEntity)entity, YourModEntity.CustomEntity.class, false, false));

where YourModEntity is the name of your custom mob.

this should make all mob entities that can attack go attack your custom mob.

Last seen on 22:22, 6. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Seems nice! But how about…
Thu, 03/18/2021 - 15:38

Seems nice! But how about only zombies for example?

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just change the name of the…
Thu, 03/18/2021 - 17:51

Just change the name of the entity in the if statement.

Last seen on 22:22, 6. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where exactly?
Thu, 03/18/2021 - 18:28

Where exactly?

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You don't need to touch the…
Thu, 03/18/2021 - 18:34

You don't need to touch the code. I'm talking about the actual drag block.

a

Last seen on 22:22, 6. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you give an example with…
Thu, 03/18/2021 - 19:01

Can you give an example with images?