Started by
TheGreenFax
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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.
also I was wondering after the crashes stop will you release the mod??
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.
Beta 1.0 and 1.0.1 of the mod are already released and are on my profile. :)
I just checked your profile and couldn’t find any mods.
It worked! Thank you so much. :)
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)