Solved Disable stone creating

Discussion in 'Plugin Development' started by Wruczek, Mar 1, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Wruczek

    Hi!
    How I can disable Stone creating, when lava meet water?

    Sorry for bad English.
     
  2. Offline

    CubieX

    Not tested. But I think the BlockFormEvent should fire if this happens.
    Try it. If it does, you can cancel the event if the block is of Material.COBBLESTONE
    You could also check if there is flowing lava and water beneath this block. But it's probably not necessary here.
     
  3. Offline

    Wruczek

    Didnt work.
     
  4. CubieX
    BlockForm is fired during things such as snow forming due to a snow storm. and ice forming in a snowy Biome like Taiga or Tundra.

    Wruczek
    Try using the BlockSpreadEvent and then check if the source block is lava using the getSource() method and if it's lava, cancel the event
     
  5. Offline

    Wruczek

    The Gaming Grunts
    Code:
    @EventHandler
    public void spread(BlockSpreadEvent event){
            Bukkit.broadcastMessage(event.getSource().getLocation().toString()); //Little debug :3
            event.setCancelled(true);
    }
    Didnt work. Yes, I registred the events.

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  6. Offline

    Wruczek

    bump agin...
     
  7. What does the debug say?
     
  8. Offline

    Wruczek

    @The Gaming Grunts
    Its very interesting.
    It does not send anything, when stone is creating, but say random locations on chat.
    When I teleported to this places, I always stand on mushroom. One time debug say location of block pickup by enderman.
     
  9. Offline

    Wruczek

    Bump.
     
  10. Offline

    Wruczek

    bump. nay1?
     
  11. Offline

    Garris0n

Thread Status:
Not open for further replies.

Share This Page