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

Started by Ello.-'_@ on Thu, 08/27/2020 - 13:52

Topic category: Help with modding (Java Edition)

Last seen on 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do i make it so when you wear a helmet pigman fight for you?
Thu, 08/27/2020 - 13:52

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 18:03, 18. May 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:22, 8. Jun 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:22, 8. Jun 2021
Joined Nov 2019
Points:

User statistics:

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

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

Last seen on 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:22, 8. Jun 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:22, 8. Jun 2021
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

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

Nothin its fine. Thanks!

Last seen on 14:38, 29. Mar 2021
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.