How do i make it so when you wear a helmet pigman fight for you?

Started by Ello.-'_@ on

Topic category: Help with modding (Java Edition)

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make it so when you wear a helmet pigman fight for you?

Hey, i know i ask a lot of questions, and i am sorry! But, my mod has a boss fight with 4 stages what it drops is a crown, and how do i make that crown make pigman fight for me?

Last seen on 15:09, 2. Sep 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is not possible without…
Thu, 10/22/2020 - 15:02

This is not possible without editing the pigmen's code, which could remove support for other mods that do the same.  

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make that happen? …
Thu, 11/05/2020 - 23:31

How do i make that happen?  I really need to do this or this boss item is useless.

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do this to make pigzombies…
Fri, 11/06/2020 - 11:06

do this to make pigzombies target an entity you designate:

https://mcreator.net/forum/66575/how-make-mining-block-turn-pigmen-aggr…

and use the global trigger "Entity attacked", check if {sourceentity} is EntityPlayer and wearing the crown, then set pigzombies attack target to the {target/event entity}

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I cant find how to detect if…
Fri, 11/06/2020 - 14:20

I cant find how to detect if the player is wearing the crown. ive searched the internet and i found nothing.

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Fri, 11/06/2020 - 15:11

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

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Heh, i did that at the start…
Fri, 11/06/2020 - 15:51

Heh, i did that at the start i just forgot to put the source entity in. XD

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait it still didnt work it…
Fri, 11/06/2020 - 16:00

wait it still didnt work it just made the pigman swing the sword, unless i do the "deal 1 damage to entity generic." that will target a specific entity though, no?

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you didn't read the linked…
Fri, 11/06/2020 - 16:43

you didn't read the linked post carefully. you have to lock the procedure and modify the code

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok i went in the code would…
Fri, 11/06/2020 - 18:33

ok i went in the code would it be like this?

 

compareDistOf((entity.getPosX()), (entity.getPosY()), (entity.getPosZ()))).findFirst().orElse(null))).setRevengeTarget((LivingEntity)entity);

 

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok it worked but right…
Fri, 11/06/2020 - 18:45

ok it worked but right clicking now hurts who im attacking

 

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what do you want it to do?
Sat, 11/07/2020 - 12:30

what do you want it to do?

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nothin its fine. Thanks!
Sat, 11/07/2020 - 15:18

Nothin its fine. Thanks!

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Haha so funny thing, im…
Sun, 01/31/2021 - 00:16

Haha so funny thing, im using an updated version of mcreator, how do i do this in the updated version? Im trying with Endermen now.