Increased Fall Damage For Block?

Started by SaltLick on Tue, 05/24/2022 - 18:34

Topic category: Help with modding (Java Edition)

Last seen on 00:32, 9. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Increased Fall Damage For Block?
Tue, 05/24/2022 - 18:34

Hey, I was wondering how to increase fall damage for a certain block (like a spike).
It would be okay if you need to use a code snippet in the procedure, but I would like if you could send the snippet for me to copy/paste because I am hopeless at coding.
Thanks!
-ThatsMySaltLick

Last seen on 16:09, 22. Jun 2022
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I think that there are two…
Sat, 05/28/2022 - 16:34

I think that there are two options, but these ideas are pretty loose. 

  1. You can use global trigger Entity falls and detect if under player is your block. If it is correct block you can deal damage to entity (you can use passed damagemodifier to multiply your dealt damage).
  2. Second (and i think better) option would be using "Before entity is hurt", but for that you would need to write whole file yourself, cause through mcreator blocks I think it wouldn't be possible (since passed source in mcreator is always an entity). 
Last seen on 00:32, 9. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I will probably try the…
Thu, 06/09/2022 - 00:31

I will probably try the first and see if I like the way it works, and if not, seek more help, thanks!