1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Generator

Discussion in 'Development' started by #A6543, Mar 1, 2017.

  1. #A6543

    #A6543 Zombie

    Messages:
    267
    How can I create a world generator that creates a platform of glowstone at a specific position?
     
  2. Hyper

    Hyper Spider

    Messages:
    7
    GitHub:
    Hyper
    Just use WorldEdit.
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    do you mean like a single sky island of glowstone?
     
  4. #A6543

    #A6543 Zombie

    Messages:
    267
    Yes. I want to create a spawn platform
     
  5. #A6543

    #A6543 Zombie

    Messages:
    267
    :facepalm:
     
    jasonwynn10, kaliiks and Muqsit like this.
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    how? how would world edit make sure the whole world have glow stone randomly around them,
    how can i even program it to do so?
    how can it work IF my players load a new chunk?
    tldr; it dosent work like that
     
    jasonwynn10 and HimbeersaftLP like this.
  7. Hyper

    Hyper Spider

    Messages:
    7
    GitHub:
    Hyper
    Wait, so he means kind of like a skyblock island but just the platform which would be glowstone?
     
  8. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    What should the dimensions of the platform be? How many layers? Are there more than one platform?
     
  9. #A6543

    #A6543 Zombie

    Messages:
    267
    I want to create a platform in a radius of 5 blocks
     
  10. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    circular or in a square shape?
     
  11. #A6543

    #A6543 Zombie

    Messages:
    267
    Circular
     
  12. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  13. #A6543

    #A6543 Zombie

    Messages:
    267
    I use this to generate it onEnable. But I creates a normal world. What am I doing wrong?
    PHP:
    $this->getServer()->generateLevel($nameNULL"Glowstone", array("2;7,2x3,2;1;"));
     
  14. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    If you are making another plugin to generate the world, you have to make sure to make it load after my plugin
    add this to your plugin.yml
    Code:
    depend: GlowstoneCircleWorld
     
  15. #A6543

    #A6543 Zombie

    Messages:
    267
    No. I added that to yours
     
  16. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    You don't have to add anything to the plugin. Put the world type in your server.properties file as "Glowstone" and start the server with a new world name.
     
  17. #A6543

    #A6543 Zombie

    Messages:
    267
    But I want to create it onEnable.... What aren't u understanding?
     
  18. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    There isn't a need if you just modify the server.properties file temporarily.
    Just change it back after the world is generated.
     
  19. #A6543

    #A6543 Zombie

    Messages:
    267
    ........... I want to generate it onEnable.... I created something that deletes and creates the world
     
  20. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    Apparently an error occured
    Code:
    [Server thread/CRITICAL]: Error: "Cannot call abstract method pocketmine\level\generator\Generator::__construct()" (EXCEPTION) in "/plugins/GlowstoneCircleWorld-master/src/jasonwynn10/GlowstoneGenerator" at line 17
    
    Why don't you post errors if you encounter them ... and you expect people to help you?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.