Started by
JPZamps
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make sure that when the player falls from a certain height it gets an effect (broken leg) that seems possible but I don't know how to do it
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make sure that when the player falls from a certain height it gets an effect (broken leg) that seems possible but I don't know how to do it
global trigger "Entity falls" provides you with the distance it fell. just check if the target/event entity is a player, if so give it slow effect, because a broken leg slows you down right?
rigth! i will add an slow effect and a new custon effect (brokenleg) that will do nothing pure visual thank you
so im trying but not being able to manage, i think i might me doing something wrong but dont know what?
https://imgur.com/a/c23QYo4
you need to use the supplied "distance" parameter, not the Y velocity
so i did this, but im geting an error message
https://imgur.com/a/FgLmPmK
I have another great idea :D
If you set the difficulty to 'hard',
you'll get damaged while
walking with broken legs.
wow this is very good if i manage to implement this will certainly be very good thank you! :p
No problem ;)
I'm glad I've helped you :D
you must be using an older version of mcreator. 2020.5 provides "distance" as a parameter for the "entity falls" global trigger. if you're using 2020.2 or something, i suggest upgrading to 2020.5 or newer. even if you're modding for forge 1.12.2, there's a generator plugin for it.
so i check that out and it says version 2020.5, i dont know what could be any ideia?
1. i just looked at your screenshot, it shows you're using the "command executed" global trigger. you should be using the "entity falls" trigger.
2. if you're modding for forge 1.12.2 then it seems the generator doesn't support "entity falls" trigger
i swear thath ultil yeasterday this was "entity falls" there lol, i change and it work thank you so much
I know this post is old but the "Number depedency" block doesn't seem to exist in recent version or it has been replaced idk. Any idea on that ?
You probably missed it, I've done it a few times, try to take a look again if you still can't find it, send me your discord and I'll send you the file with the code