Game Freezes/Crashes when item is dropped in fluid

Started by TheGreenFax on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.

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??

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.

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. :)

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. 

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. :)

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)