How to make fish drown out of water

Started by AppleMod on

Topic category: Help with modding (Java Edition)

Last seen on 05:32, 20. May 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make fish drown out of water

I tried making a procedure that damages my custom fish entity take damage out of water, but no luck. I feel like it might be because that entity can only take damage certain ways? Please help ASAP

Last seen on 01:07, 18. Apr 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you provide a screenshot…
Wed, 06/22/2022 - 12:41

Can you provide a screenshot of your current procedure/s?

Last seen on 05:32, 20. May 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean with the procedure…
Wed, 06/22/2022 - 23:10

I mean with the procedure right now it just isn't taking damage.

Last seen on 01:07, 18. Apr 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So building off of what you…
Thu, 06/23/2022 - 00:06

So building off of what you have already, this should work as it deals damage every second, and can be changed by tweaking the wait times (changing either wait times should work). An issue with it is that 2 instances of damage will always be dealt every time it tries dealing damage - I can't figure this part out or why it happens, even when looking at the code. Someone else may be able to explain this? If there's any issue with the below procedure let me know.

The procedure is triggered by "On entity tick update" of the custom mobs "Triggers" page.

procedure

Last seen on 05:32, 20. May 2023
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! I'll test it out as…
Thu, 06/23/2022 - 02:54

Thanks! I'll test it out as soon as I can