please someone these are two things that i just cant figure out

Started by jeux2119 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
please someone these are two things that i just cant figure out

i just want to make a simple mob that heals tameables in a 7 block raidous but whatever i do it just doesent work 
https://imgur.com/a/SBXPzrjhealing help 

also i want a helmate to summon wolfs when you right click with it on the player i dont even have a procedure because everytime i tried it went wrong
 

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not even sure how you…
Sun, 07/02/2023 - 01:36

I'm not even sure how you managed to replace "entity iterator" with "get nearest," but that is not how it works.

First, on the outside of everything, put an if statement with the condition that targ/entity is your custom entity that is supposed to heal stuff.

Second, replace the "get nearest" block with "entity iterator." Put an if statement that checks if the iterator is a player inside of the "for each" statement, and move the regen-giving stuff under there. Remove the delay and effect removal blocks.

If the regen is staying around after it should be gone, replace the "give effect" block with an "execute command in the name of" block, executing "/effect give @s regeneration 1 0" in the name of entity iterator.

Let me know if you require further assistance.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wait where do i put the…
Sun, 07/02/2023 - 01:46

wait where do i put the executecommand

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That should be good, but if…
Mon, 07/03/2023 - 01:37

That should be good, but if the regen isn't going away then you can replace the "add potion" block with "execute command as", executing "/effect give @s regeneration 1 0" as iterator.

If it still isn't working, please specify what exactly is happening.