Started by
donmegel
on
Topic category: Help with Minecraft modding (Java Edition)
I am trying to make a fluid that explodes when it touches a torch, or fire, etc. but am not having any luck. I created an IF THEN procedure that says if block at XYZ is a thing THEN explode but it isn't working.
Ideas?
Any ideas? This line sounds bad:
System.err.println("Failed to load dependency x for procedure mycoaldustexplode!");
That line only triggers if it fails to load a dependency, as seen by the condition statement (if dependencies.get("x") == null), which means that if the dependency does not exist for whatever reason, then do what's in the code block. All of them have the condition statement for their particular dependency. The reason why you would want such a line is for debugging purposes in case something went horribly wrong.
I can't code, but if you want to make a fluid explode when colliding another block, you shouldn't use x, y, z but a lot of conditions like x+1,y,z, x,y+1,z, x,y,z+1, x-1,y,z etc.
Sorry for bad English