Increased Fall Damage For Block?

Started by SaltLick on

Topic category: Help with modding (Java Edition)

Last seen on 22:11, 31. Aug 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Increased Fall Damage For Block?

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 15:21, 16. Oct 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 22:11, 31. Aug 2022
Joined May 2022
Points:

User statistics:

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