Simple snow control request [FORMATTED]

Discussion in 'Archived: Plugin Requests' started by Paul_VB, May 10, 2012.

  1. Offline

    Paul_VB

    Catagory: world management

    suggested name: SnowControl

    What i want: i'd like a simple plugin that lets me configure what blocks snow can form on.

    command ideas: none

    permissions ideas: none

    when i'd like it by: as soon as anyone can make it for me
     
  2. Offline

    sswe902

    Format it and more people will reply

    Using this Format Example Thread

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  3. Offline

    Paul_VB

    sorry, ill get right on that

    done

    anyone? please?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  4. Offline

    Mstabarrie

    Google "minecraft world painter" then download it.
    Import your current world then paint the snow biome where you want it to snow.
     
  5. Offline

    Paul_VB

    ummm, im not really looking for a biome editor.
    i just want to stop snow from forming on double stone slabs (block 43)

    i dont think its that crazy of a requst.... is it? i dont know much about java so i dont really know :/
     
  6. Offline

    Mstabarrie

    In that case it doesn't seem like to much of a request.
     
  7. Offline

    colony88

    I'm "still" new to java, but I don't think it would be too hard for experienced devs.
    They should use the BlockFormEvent and just check what block is beneath the block, and if that's a stone slab, cancel the event.
     
    Paul_VB likes this.
  8. Offline

    Paul_VB

    exactly!


    how it it not a request?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  9. Offline

    Mstabarrie

    much of a request as in quite easy to make I imagine. sorry if that was confusing.
     
  10. Offline

    colony88

    I tried to do it, but I don't find a way to check what block is below...
     
  11. Offline

    uvbeenzaned

    You need to find your snow block however you want and then set it into a variable so you can work with it easier.

    Block myblock = [get your block with an event and use event.getBlock()];
    if (myblock.getRelative(BlockFace.Down).getType() == Material.Stone) << getType() will return a material like Material.Stone.
    {
    myblock.setType(Material.Air); << set your snow or whatever to air
    }
     
  12. Offline

    Paul_VB

    thanks guys!

    also, woulkd it be possible to make a config file that lets me configure what blocks cant have snow form on them?

    oh.. well i had a feeling it would be simple to code :D

    as i said i dont know any java, but i see you guys are already forimg the syntax and codes and it dosnt look all that difficule :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016

Share This Page