Started by
oddo1
on
Topic category: Help with Minecraft modding (Java Edition)
So, basically i wanted to make a scythe weapon (and other stuff too), i wanted the scythe to deal 5 extra damage to entities without helmet...i have the procedure but ik that in the way minecraft works, with mcreator is basically impossible. Minecraft has a 10ticks delay when an entity is hurt, so trying to deal another value of damage is going to make the game crash or the damage is completely ignored. I really need help since i'm stuck on this problem for 1 month, i'm currently using 2024.4 version of MCreator. Thanks
Edited by oddo1 on Tue, 10/07/2025 - 13:25
what is your minecraft version?
my minecraft version is 1.20.1
does that version of mcreator have the generated code viewer button?
and what damage triggers are available?
Can you show the generated code for all of them? There are probably two something like,
Yes, there are those 2 conditions and yes there is the generated code view
First method: Entity is attacked ---> If get item armor slot 3 == air ----> deal 5 damage to event entity from source damage generic made by source entity
The second method is the same as the other one but the global condition is "Entity is hurt".
First method's code:
I even accept solutions that require coding because i REALLY need this... Also, how do you send images here?
And i forgot to say something... if i put a damage that is bigger than the damage you are going to do, the bigger damage will replace your damage with the value...
https://mcreator.net/forum/119611/images-wont-show-when-i-put-them
can you show me the generated code for the other global trigger "Entity is hurt"?
Sure, here:
great that one works so you have to use that trigger, and then
try this,
((LivingHurtEvent)event).setAmount((float)set_amount);I will try this and tell you if it works, thank you so much
Umh.. idk if i'm stupid (bc i'm not familiar with java) but this doesn't seem to work... i have a question... what does the local variable "set_amount" do exactly..?
it's just a helper variable so you don't have to change the custom code snippet to change what it sets the damage to
what about it doesn't work?
ohh... ok... i re-tried again putting the value in the local variable but the damage it's still the same...
any errors in console? I don't have mcreator for 1.20.1 set up rn so I can't test