Help with making a block that when near, gives you healing

Started by dadogplayz7 on

Topic category: Help with modding (Java Edition)

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with making a block that when near, gives you healing

Just what it says. Also a block that fills up hunger?

Last seen on 02:23, 27. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is pretty simple, all…
Mon, 10/25/2021 - 20:48

This is pretty simple, all you have to do is make a procedure. They have a template to detect when the player is near the custom block. You just want to do On loaded entity Tick update, use the does entity exist in a square box of size put any size, and then just use the add potion.

 

Procedure

 

 

All you have to do is change some values, hope this helps.

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what he said, just don't put…
Mon, 10/25/2021 - 21:58

what he said, just don't put anything on Global Triggers and put the procedure on your block update tick

search before posting

Last seen on 17:34, 16. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what about an entity that…
Tue, 06/27/2023 - 15:10

what about an entity that heals around it?

please

Last seen on 14:22, 19. Apr 2024
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On entity tick update…
Tue, 06/27/2023 - 15:26

On entity tick update procedure trigger in your entity:

(For each entity in square cube of size (number) as entity iterator)

      if(is(entity iterator*) sub/type of [living entity*])

      do:    (apply potion effect [instant health] to entity (entity iterator*) for (1) ticks amplifier (0)

 

 

* means you have to swap out a procedure block or open a dropdown menu

I apologize if I have misspelled any procedure blocks.

If it is too fast you can add the procedure template of 'do with 70% chance' and change the 0.7 to a lower number(the lower the number the slower it will be).