[Req]Village generator[Req]

Discussion in 'Archived: Plugin Requests' started by jimbo8, Nov 20, 2011.

  1. Offline

    jimbo8

    I want a plugin that generates villages. Like if you write "/gv" then it generates a village at the place you are standing! That would be sooo awesome. Thanks. Jimbo8.

    please?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 21, 2016
    jspatafora70 likes this.
  2. Offline

    croxis

    Bukkit for 1.0 isn't formally out yet, give people some time. Also if I recall correctly the villages are a type of biome, so it isn't a trivial thing to add.
     
  3. Offline

    ZNickq

    not that hard! (easy really)
    you just trigger the right method, and off it goes :)
    not gonna do it myself though, busy with private plugins :(
     
  4. Offline

    jspatafora70

    It would be cool if there was a plugin to expand villages too:)
     
  5. Offline

    jimbo8

    Ye it would.
     
  6. Offline

    jimbo8

    Do you know someone that can?
     
  7. Offline

    ZNickq

    any plugin developer! :p
    It's pretty easy!
     
  8. Offline

    jimbo8

    Give me some tutorials pls... I know some java from before.

    [Edit] A tutorial on how to make plugins.
     
  9. Offline

    ZNickq

    Check out the HUGE plugin tutorial on the bukkit wiki :)
    Pretty useful :)
    But i'm warning you, you need to really know java to understand anything :p
     
  10. Offline

    jimbo8

    Uff... it is SOOO long! xD

    Start a private conversation so we dont spam the post?

    Need to say something to you

    Please? xD

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 21, 2016
    ZNickq likes this.
  11. It wouldnt be as easy as you are making it come accross.... bukkit api dosent offer any methods for generating villages at the moment. It would involve modding the vanilla server if im correct.
     
  12. Well... If the server (Bukkit) can generate a village then it should be somewhere in the code :)

    I think this is a nice thing to have. If I have time I will try and create something...
     
  13. Offline

    ZNickq

    Nope, no need to mod anything, can be done from a plugin...you just need to import craftbukkit instead of bukkit as a jar and voala! much more control :)
     
  14. Yea, its in the code, just not available with the bukkit API.


    I dont know about this personally...
     
  15. Yeah... I can't find anything related to Villages in the (Craft)Bukkit source... Maybe @ZNickq can help us in the right direction :)

    Edit: Ahh... Probably BlockPopulator or something like that. I need my own pc to get some testing done! :)
     
  16. Offline

    ZNickq

    @dadaemon
    @lmc
    Code:java
    1.  
    2.  
    3. WorldGenVillage a;
    4. a.a(world, new Random(), chunkx, chunkz);
    5.  

    You need to have craftbukkit as a library, and x and z are chunk coordinates :) also, world is the minecraft world, you can get it using:
    Code:java
    1.  
    2. org.bukkit.World w=normalMcWorld;
    3. World worldy=((CraftWorld) w).getHandle();
    4.  
     
  17. Will try! Thanks @ZNickq ! But then again, how could I find this when it is called a.a! *DOH!* ;)
     
  18. Oh I see what you mean now, looks good! :)
     
  19. Offline

    ZNickq

    It's obfuscated :p
    That's how the entire minecraft code is! :D
     
  20. Offline

    jimbo8

    Hope you can make it :D
     
  21. I hope I can get some time this weekend. Shouldn't be too hard if this is all that's needed for it.
     
  22. Offline

    jimbo8

    Good, because you are AWESOME!
     
    dadaemon likes this.
  23. Offline

    jimbo8

    How is it going? Hope you can make it soon :D Opening my server this weekend.
     
  24. Offline

    jimbo8

    can anyone make it?
     
  25. Offline

    Ondechoc

    could it works on a Skyland map :D ?
     
  26. Offline

    jimbo8

    So no new?
     
  27. Offline

    Flopsie

    I was looking for this aswell, hope someone can do this.
     
  28. Offline

    tomjw64

    How would one go about finding stuff in craftbukkit? just looking through the files in the .jar?

    I thought I would try it because I'm new to Java and it looks interesting, but I don't think this works. No casting errors or anything. Just nothing happens.
    Code:
                    Player user=(Player)sender;
                    WorldGenVillage villageGen=new WorldGenVillage();
                    org.bukkit.World w=user.getWorld();
                    World world=((CraftWorld) w).getHandle();
                    villageGen.a(world, new Random(), user.getLocation().getChunk().getX(), user.getLocation().getChunk().getZ());
    I'm sure that I did something stupid though. :p

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

    ZNickq

    .a probably got changed, try one of the others...also, send a message to the user, to check if the code is actually being run!
     
  30. Offline

    tomjw64

    well .a takes the same parameters and says that it generates structures. :/
    But yeah, I will send a message I guess, good idea.
    Why don't you give it a shot, for all of us. xD
     

Share This Page