Just a quick question.

Discussion in 'Plugin Development' started by A3O2, Dec 13, 2012.

Thread Status:
Not open for further replies.
  1. out of curiosity which event handles turning ice to water near light?
     
  2. Offline

    makskay

    Looks like it's BlockFadeEvent.
     
  3. i just made this in a few mins but would this work?
    Code:java
    1. @EventHandler
    2. public void NoMelt(BlockFadeEvent e){
    3. Block block = e.getBlock();
    4.  
    5. if(block.getType() == Material.ICE){
    6. e.setCancelled(true);
    7. }
    8. }
     
  4. Offline

    fashizzles

    I'm not seeing where the "Syntax" came from. What is your IDE?
     
  5. huh?
     
  6. Offline

    fashizzles

    Never mind, my computer did not load up that "Code" picture all the way and showed me a [ Syntax ] =java before your lines of code. Sorry for the misunderstanding.
     
  7. Offline

    makskay

    A3O2 Yes, to the best of my knowledge the code you posted should work.
     
Thread Status:
Not open for further replies.

Share This Page