Bleeding effect

Started by Velathain on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Bleeding effect
Wed, 12/11/2024 - 09:15 (edited)

I need help making a bleeding potion effect for the player.

I want the player to start bleeding and also be given strength and some other potion effects when they right click while holding a specific weapon. Its kinda a sacrifice, cut yourself but get something good out of it. I have tried getting it to work with some help from other similar forums but I just couldn't figure it out (I have no clue how procedures work).

Note: I don't want the effect to affect other players or entities, just the person who did the thing.

Any help will be greatly appreciated.

Edited by Velathain on Wed, 12/11/2024 - 09:15
Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks, I'll give this a go…
Thu, 12/12/2024 - 00:17

thanks, I'll give this a go and get back to you.

Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
have you tried regenerating…
Thu, 12/12/2024 - 02:34

have you tried regenerating code, refactoring workspace, or simply closing and opening mcreator after clicking that check?

 

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did refactor the workspace…
Thu, 12/12/2024 - 05:26

I did refactor the workspace, but I'll look again.

Thanks for helping.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yep, so all I did to fix it…
Thu, 12/12/2024 - 05:30

Yep, so all I did to fix it was get rid of the code and start over. Looking at that now I feel stupid haha, I just need to use my brain sometimes.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I've got some more…
Thu, 12/12/2024 - 07:42

So I've got some more questions:

1: I've made this procedure in a separate workspace and it works perfectly but once I create the same procedures in the workspace which includes all my other mod items it just won't even load the game. do I need to re-write all the other items since I added pehkui plug-in after creating those items and procedures?

2: is it possible to make the bleeding damage ignore armour, protective enchants and food/saturation?

 

Sorry if its annoying but I'm slowly learning, Thanks.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well did you load the plugin…
Thu, 12/12/2024 - 16:57

well did you load the plugin correctly on you main workspace?

 

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure I did, I…
Thu, 12/12/2024 - 22:30

I'm pretty sure I did, I loaded it the same as on the test workspace. The only difference is that I added the plugin after I had made a bunch of other stuff.

I'm going to just restart the mod and see if that fixes it.