Posted February 10, 20214 yr I'd like to add a chance of a block spawning every time a water source turns into ice. I check but there is no event to listen to this in the current version. Does anyone know if this would be possible?
February 11, 20214 yr 7 hours ago, crischu said: Does anyone know if this would be possible? you can overwrite the ice block and add your chance you then have to register the block with the minecraft id Another way would be with the BlockEvent NeighborNotifyEvent, but I'm not sure when this event is triggered exactly (i don't know if it is triggered when the ice is converted into water). If you want to try that, first use the debbuger to determine whether the event is triggered
February 11, 20214 yr Author 8 hours ago, Luis_ST said: you can overwrite the ice block and add your chance Interesting, what's the method to overwrite? 8 hours ago, Luis_ST said: Another way would be with the BlockEvent NeighborNotifyEvent 6 hours ago, diesieben07 said: NeighborNotifyEvent should work. I didn't find much documentation about how to check events, for example, how does one check if the event is water freezing versus for example a player placing an ice block on a water source? or an ice block generating on a water source in other way?
February 12, 20214 yr 15 hours ago, crischu said: Interesting, what's the method to overwrite? you have to overwrite the method IceBlock#turnIntoWater
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.