World Generation Help - Custom Generator

Discussion in 'Plugin Development' started by Dnewhard, Dec 4, 2011.

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

    Dnewhard

    hasghsfaghs
     
    Last edited by a moderator: Mar 13, 2015
  2. Maybe explain what's going wrong. Then people know what to help you with :)
     
  3. Offline

    xpansive

    That tree generator is absolutely bound to fail...
     
  4. Offline

    Dnewhard

    asfdghshfdhgasdgs
     
    Last edited by a moderator: Mar 13, 2015
  5. Offline

    xpansive

    First of all, the only time it will generate dirt is at a x and z of 110 where the highest y block is 110 as well. Instead of the long parsing, just do (long)intNumber to cast it. The method you're using is absolutely redundant. You actually shouldn't even need a cast if I'm remembering correctly, ints can be coerced to longs. You also do the same checking for x, y, and z to equal 3, which will probably never be true. Also, I think you meant to set dirt, not mycelium.

    Edit: So it compiles, but crashes with a runtime error? Can I see a stack trace?
     
  6. Offline

    Dnewhard

    daGSGNHJSGAgsdgds
     
    Last edited by a moderator: Mar 13, 2015
  7. Offline

    Arlakonud

    Same problem here.
     
  8. Offline

    slayercraft

    dnewhard i think the problem might be that you have to change your public class to this
    Code:
    public class TreeBLockPopulator extends JavaPlugin implements BlockPopulator
     
Thread Status:
Not open for further replies.

Share This Page