Whem player get fall damage (broken leg)

Started by JPZamps on Wed, 03/24/2021 - 04:58

Topic category: Help with modding (Java Edition)

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Whem player get fall damage (broken leg)
Wed, 03/24/2021 - 04:58

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

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
so i did this, but im geting…
Fri, 03/26/2021 - 19:34

so i did this, but im geting an error message

https://imgur.com/a/FgLmPmK

Last seen on 01:13, 28. Mar 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 

Last seen on 01:13, 28. Mar 2022
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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? 

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 00:25, 28. May 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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