New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow flooding to cause item drops #4130
Conversation
Non-air nodes can be defined as floodable, and now they'll drop their contents rather than just being replaced with air.
AFAIK it's intentional that items are not dropped if they are flooded by water. |
IMO the engine should allow for whatever mods want, even for really bad ideas like letting liquids drop plants. Its a griefer's wet dream... |
I suggest to make the behaviour configurable. |
Yes 'floodable' is to allow liquid to flow into vacuum, alien atmosphere, gas or any airlike nodes, which should not be dropped. |
@est31 maybe change the floodable field to allow specifying that nodes should be dropped when flooded? |
I don't think it can be as simple as this anyway. If there is an I'm somewhat positive about the concept, but I think this is too simple. |
@sofar - So an example for something like lava source would be:
... thus saving on using an Abm to do the same action. |
^ Good idea. |
Yes, something like that is what I had in mind. |
👎 I don't feel this is right, at all, and would be much more interested in seeing an on_flood() callback implementation as discussed above. |
There is general dev agreement that an on_flood callback is the way to do this. |
Non-air nodes can be defined as floodable, and now they'll drop their contents rather than just being replaced with air.