How to make fish drown out of water

Started by AppleMod on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Oct 2021
Points:
515

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
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

Active 6 months ago
Joined Apr 2021
Points:
611

User statistics:

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

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

Active 1 year ago
Joined Oct 2021
Points:
515

User statistics:

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

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

Active 6 months ago
Joined Apr 2021
Points:
611

User statistics:

  • Modifications: 1
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 112
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

Active 1 year ago
Joined Oct 2021
Points:
515

User statistics:

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

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