Game Freezes/Crashes when item is dropped in fluid

Started by TheGreenFax on

Topic category: Help with modding (Java Edition)

Last seen on 17:20, 3. Mar 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Game Freezes/Crashes when item is dropped in fluid

So I made a fluid that damages a mob/player when they step in it. I noticed that when my custom mob dies in the fluid, the game crashes when it drops the item in the fluid. Here are the blocks I used for FluidMobPlayerCollidesBlock:

if Has Event/target entity active potion: CUSTOM:VoidResistance

  do Deal 0 damage to Event/target entity type: GENERIC

  Add potion with level 0 and duration 0 to Event/target entity type: BLINDNESS

else Deal 5 damage to Event/target entity type: GENERIC

  Add potion with level 5 and duration 400 to Event/target entity type: BLINDNESS

(Apologies for not putting in an image of the blocks.)

Any idea why the game crashes when this happens?

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think its because items…
Sun, 08/16/2020 - 22:29

I think its because items don't have void resistance. maybe make it so that the entity is player and monster and animal. I hope this helps to fix the crash.

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
also I was wondering after…
Sun, 08/16/2020 - 22:36

also I was wondering after the crashes stop will you release the mod??

Last seen on 21:12, 25. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If the item entities trigger…
Mon, 08/17/2020 - 08:18

If the item entities trigger the procedure, it may not know how to damage the items and/or assign a potion effect to them in the "else" statement. If this is the case, McModded1.14's solution should work.

Last seen on 17:20, 3. Mar 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Beta 1.0 and 1.0.1 of the…
Tue, 08/18/2020 - 02:15

Beta 1.0 and 1.0.1 of the mod are already released and are on my profile. :)

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just checked your profile…
Tue, 08/18/2020 - 02:57

I just checked your profile and couldn’t find any mods. 

Last seen on 17:20, 3. Mar 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It worked! Thank you so much…
Tue, 08/18/2020 - 03:28

It worked! Thank you so much. :)

Last seen on 17:20, 3. Mar 2024
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I had to change…
Tue, 08/18/2020 - 04:01

Sorry, I had to change something because it was taken down. Hopefully Beta 1.0.2 should be up soon. (1.0 and 1.0.1 are no longer available)