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

Started by dadogplayz7 on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Sep 2020
Points:
618

User statistics:

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

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

Active 3 years ago
Joined Oct 2021
Points:
429

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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.

Active 6 months ago
Joined Oct 2020
Points:
1574

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
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

Active 1 month ago
Joined Jan 2023
Points:
306

User statistics:

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

what about an entity that heals around it?

please

Active 16 hours ago
Joined Apr 2023
Points:
423

User statistics:

  • Modifications: 1
  • Forum topics: 16
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 371
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).