Game Freezes/Crashes when item is dropped in fluid

Started by TheGreenFax on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Mar 2018
Points:
735

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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?

Active 2 years ago
Joined Mar 2020
Points:
1538

User statistics:

  • Modifications: 7
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 1303
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.

Active 2 years ago
Joined Mar 2020
Points:
1538

User statistics:

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

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

Active 3 years ago
Joined Jul 2020
Points:
679

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 84
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.

Active 2 months ago
Joined Mar 2018
Points:
735

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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. :)

Active 2 years ago
Joined Mar 2020
Points:
1538

User statistics:

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

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

Active 2 months ago
Joined Mar 2018
Points:
735

User statistics:

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

It worked! Thank you so much. :)

Active 2 months ago
Joined Mar 2018
Points:
735

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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)