Whem player get fall damage (broken leg)

Started by JPZamps on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Whem player get fall damage (broken leg)

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

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
global trigger "Entity falls…
Wed, 03/24/2021 - 06:26

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?

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
rigth! i will add an slow…
Thu, 03/25/2021 - 05:10

rigth! i will add an slow effect and a new custon effect (brokenleg) that will do nothing pure visual thank you

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so im trying but not being…
Thu, 03/25/2021 - 18:08

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

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you need to use the supplied…
Fri, 03/26/2021 - 06:45

you need to use the supplied "distance" parameter, not the Y velocity

https://cdn.discordapp.com/attachments/599250311852458006/824896112531734568/unknown.png

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have another great idea :D…
Fri, 03/26/2021 - 19:39

I have another great idea :D
If you set the difficulty to 'hard',
you'll get damaged while
walking with broken legs.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
wow this is very good if i…
Fri, 03/26/2021 - 19:55

wow this is very good if i manage to implement this will certainly be very good thank you! :p 

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem ;) I'm glad I've…
Fri, 03/26/2021 - 20:50

No problem ;)
I'm glad I've helped you :D

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you must be using an older…
Sat, 03/27/2021 - 05:05

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.

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so i check that out and it…
Sat, 03/27/2021 - 05:21

so i check that out and it says version 2020.5, i dont know what could be any ideia? 

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1. i just looked at your…
Sat, 03/27/2021 - 18:06

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

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i swear thath ultil…
Sat, 03/27/2021 - 20:06

i swear thath ultil yeasterday this was "entity falls" there lol, i change and it work thank you so much

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know this post is old but…
Sun, 12/25/2022 - 18:35

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 ?

 

Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You probably missed it, I've…
Tue, 12/27/2022 - 15:48

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