Started by
jeux2119
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
wait where do i put the executecommand
is this good cuz its not working im not good at this
https://imgur.com/a/vI5EI0S
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.