Started by
Velathain
on
Topic category: Help with Minecraft modding (Java Edition)
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
well, im not sure but you could try this
(i used the pehkui plugin tho: https://mcreator.net/plugin/106411/pehkui?page=3)
here are the images:
https://imgur.com/a/doing-P8UnWqc
thanks, I'll give this a go and get back to you.
something popped up, not sure how to fix it.
https://imgur.com/a/sYZzDhF
have you tried regenerating code, refactoring workspace, or simply closing and opening mcreator after clicking that check?
I did refactor the workspace, but I'll look again.
Thanks for helping.
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.
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.
well did you load the plugin correctly on you main workspace?
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.