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.
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.
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
Give me some tutorials pls... I know some java from before. [Edit] A tutorial on how to make plugins.
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
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.
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.
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...
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
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!
@dadaemon @lmc Code:java WorldGenVillage a; a.a(world, new Random(), chunkx, chunkz); 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 org.bukkit.World w=normalMcWorld; World worldy=((CraftWorld) w).getHandle();
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. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
.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!
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