prob with health boost

Started by niconacho2020 on

Topic category: Troubleshooting, bugs, and solutions

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
prob with health boost

soo im making a mod where when u hold the sword you get health boost effect, but the thing is when i test it whenever i start to go into the health effect il take damage. im not sure if i explained that very good, but if u didnt understand whenever i heal past the normal 10 hearts i start taking damage so i never go above ten hearts. PLSSSS HELP 

Active 1 month ago
Joined Aug 2022
Points:
602

User statistics:

  • Modifications: 4
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 246
Try  If: get item from…
Fri, 03/24/2023 - 14:33

Try 

If: get item from provided itemstack: (custom_sword)

Do: 'apply potion effect minecraft:health_boost lvl (number of hearts here) for 2 ticks' to event target entity.

If that doesn't work, I can try and give a screenshot.

Active 1 month ago
Joined Aug 2022
Points:
602

User statistics:

  • Modifications: 4
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 246
Okay, a little update: turns…
Fri, 03/24/2023 - 14:40

Okay, a little update: turns out the closest I can make it is when the item is in your inventory, but a little tweaking might fix that.

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
ive just checked this, but…
Sun, 03/26/2023 - 23:59

ive just checked this, but the image isnt working so if you could try to resend it or make a link that would be nice

 

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
so what ive done is make a…
Mon, 03/27/2023 - 00:00

so what ive done is make a trigger that is when the item is being held...

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
but the effect is being…
Mon, 03/27/2023 - 00:04

but the effect is being added, just whenever i heal past the normal ten hearts i take damage until im down to ten 

Active 1 month ago
Joined Aug 2022
Points:
602

User statistics:

  • Modifications: 4
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 246
Then try Absorbtion?
Mon, 03/27/2023 - 12:28

Then try Absorbtion?

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
thats actually a good idea,…
Mon, 03/27/2023 - 16:24

thats actually a good idea, but that basically makes me invincible, cuz it is aplying the affect every tick

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
i think this is an isseu to…
Mon, 03/27/2023 - 16:25

i think this is an isseu to go in the bug tracker, il have to check if its a minercfat bug or an mcreator bug

Active 2 months ago
Joined Mar 2023
Points:
190

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 23
ok ive tested it, its only…
Mon, 03/27/2023 - 16:26

ok ive tested it, its only when the sword gives the effect, so ima put it in the bug tracker