Menu

#4 Lava sponge

open
nobody
None
5
2009-12-08
2009-12-08
Anonymous
No

A lava sponge would be very useful to help prevent floods

Discussion

  •  Søren Enevoldsen

    While it's no problem to add the logic behind a lava sponge, the number of different blocks are limited by the client. One of the current blocks would have to do it then.

     
  • Brett

    Brett - 2009-12-08

    It's actually pretty simple to add, but a few things need to be changed:

    Blocks need to be assigned an internal ID and a display ID. The Lava Sponge's internal ID would be something like -1, so it won't interfere with official blocks, but its display ID would be that of a regular sponge. Then it simply has to be assigned a LavaSpongeBehaviour.

     
  • Nobody/Anonymous

    like brettrussell said, you would need to do some command like /lavasponge
    so wen you put a regular sponge on the server it would check if lavasponge=1 and it would absorve lava instead of water.

     
  • Brett

    Brett - 2009-12-08

    It would probably fall under the scope of an entire custom block command (/build lavasponge), which would instantaneously replace any block you build from block slot 1 with the custom block.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.