Custom potion effect that changes maximum health help?

Started by sw0rdmas73r on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom potion effect that changes maximum health help?

I'm trying to make an effect that edits the player's maximum health until they either sleep or die due to the effect taking all their health. Can anyone help?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a plugin called DTM…
Tue, 02/23/2021 - 18:30

There is a plugin called DTM attributes, it gives you procedure blocks that allow you to change the max health a player has. And for the sleeping part, it's a bit of a pseudo way of doing it since I don't think MCreator has a sleep procedure, I would check if a player right clicks a bed and if it is night.

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok, thank you so much!
Tue, 02/23/2021 - 19:34

Ok, thank you so much!

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can’t seem to figure out…
Wed, 02/24/2021 - 15:51

I can’t seem to figure out how to implement the plugin. 

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
WAIT- your condition is…
Sat, 03/20/2021 - 11:51

WAIT- your condition is buggy:

  1. if the player slept at day during thunderstorm,he/she won't recover due to not night(should)
  2. ifthe player tried to sleep at night but block due to monsters nearby or too far,he/she will recover(shouldn't)