Builder for Citizens2
![]() | ![]() |
---|
Builder is a character plugin for the NPC plugin Citizens2. With Builder, A NPC can be given a mcedit/worldedit schematic file and build it block by block. Builder NPCs can also maintain an existing building, replacing changed blocks or removing new ones.
Features
Builde' NPCs can:
- Build MCEdit/Worldedit schematics, block by block.
- Rebuild an existing structure, fixing anything that has been changed.
- Require players to supply the building materials before starting to build.
Installation
- Install Citizens2 Please use Latest Dev Builds
- Unzip Builder.zip to your minecraft /plugins/ directory.
- This will install Builder jar, create the Builder/schematics/ folder and put house.schamatic in it.
- Start your server.
Usage
- Create a NPC with Citizens and give it the 'builder' trait.
/npc create Bob --trait builder
- Load a schematic with /builder load, Example:
/builder load house
- This will load the included example house.schematic file.
- Position the NPC in the center of the area in which it should build.
- Start the NPC building with:
/builder build
More detailed instructions and other commands can be found on the Citizens 2 Wiki
FAQ
Q: How can I use multiple builders on one project?
A: You can use up to 4 builders on one project by giving them all the same schematic and origin, but different build patterns. You can also manually split your schematic into multiple parts with WorldEdit or MCEdit.
Q: How can I make builders go faster?
A: Use the /builder timeout command to set the max time between blocks. You can also make the builder walk faster with "/npc speed"
@mcmonkey4eva
The website doesn't load for me.
@mcmonkey4eva
Thanks man!
@Pocketkid2
Not yet. Soon.
EDIT: DONE. http://ci.citizensnpcs.co/job/Builder/
Is Builder updated to 1.8.3?
@xAcrosonicx
Update Builder http://ci.citizensnpcs.co/job/Builder/
Getting this error when I do /builder build.
07.03 21:59:26 [Server] INFO ... 14 more 07.03 21:59:26 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.Builder.onCommand(Builder.java:468) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.BuilderTrait.TryBuild(BuilderTrait.java:288) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.BuilderTrait.StartBuild(BuilderTrait.java:346) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java:61) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) [?:?] 07.03 21:59:26 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_72] 07.03 21:59:26 [Server] INFO at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_72] 07.03 21:59:26 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R4.NBTBase 07.03 21:59:26 [Server] INFO ... 14 more 07.03 21:59:26 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.Builder.onCommand(Builder.java:468) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.BuilderTrait.TryBuild(BuilderTrait.java:288) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.BuilderTrait.StartBuild(BuilderTrait.java:346) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java:61) [?:?] 07.03 21:59:26 [Server] INFO at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) [?:?] 07.03 21:59:26 [Server] INFO Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R4/NBTBase 07.03 21:59:26 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.7.0_72] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.7.0_72] 07.03 21:59:26 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.7.0_72] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:53) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInChat.a(PacketPlayInChat.java:26) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:950) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.handleCommand(PlayerConnection.java:1115) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:646) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [Spigot18.jar:git-Spigot-c3c767f-33d5de3] 07.03 21:59:26 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'builder' in plugin Builder v0.9.1 07.03 21:59:26 [Server] ERROR null
@Pensukdeath
Update your server. 1.8 bukkit is out already, and you're still on 1.6!?
Help!!!!! 03:07:50 [INFO] Undead issued server command: /builder build 03:07:50 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'buil der' in plugin Builder v0.8.1 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19 2) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.dispatchCommand(CraftServe r.java:528) at net.minecraft.server.v1_6_R3.PlayerConnection.handleCommand(PlayerCon nection.java:968) at net.minecraft.server.v1_6_R3.PlayerConnection.chat(PlayerConnection.j ava:886) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java :837) at net.minecraft.server.v1_6_R3.Packet3Chat.handle(SourceFile:49) at net.minecraft.server.v1_6_R3.Packet3Chat$$EnhancerByCGLIB$$76e5a9ae.C GLIB$handle$0(<generated>) at net.minecraft.server.v1_6_R3.Packet3Chat$$EnhancerByCGLIB$$76e5a9ae$$ FastClassByCGLIB$$3f5cbfa7.invoke(<generated>) at com.comphenix.net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy. java:228) at com.comphenix.protocol.injector.packet.ReadPacketModifier.intercept(R eadPacketModifier.java:135) at net.minecraft.server.v1_6_R3.Packet3Chat$$EnhancerByCGLIB$$76e5a9ae.h andle(<generated>) at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296 ) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java :116) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:5 92) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:2 27) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:4 88) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java :421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:5 83) Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R2/NBTBase at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java :61) at net.jrbudda.builder.BuilderTrait.StartBuild(BuilderTrait.java:346) at net.jrbudda.builder.BuilderTrait.TryBuild(BuilderTrait.java:288) at net.jrbudda.builder.Builder.onCommand(Builder.java:467) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 20 more Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_6_R2.NBTBas e at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader .java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 26 more
version 1.6.4 (Builder v0.8.1 - 1.6.4) (citizens 1.6.4)
Hello,
I was wondering if anyone could offer some incite into the best way to hook into builder and have the citizens run builds via another plugin. I'm trying to integrate this into my plugin and after several hours of sifting though the source code and no success I am rather stuck.
If anyone has any idea on the best way to do this it would be greatly appreciated!
This works perfectly with 1.8 Bukkit
CraftBukkit version git-Bukkit-262c777 (API version 1.8-R0.1-SNAPSHOT)
I am sure you need to use up to date versions of Builder with World Edit and Citizens.
I dont use Denizen. (Because it scares me.. The potentials!!!)
This Citizens plugins can build super massive schematics on a
tiny overloaded test server without ANY issues. It's win win.
The options to "players need to supply the builder" work 100%
Builder v0.9.1
Citizens-2.0.14-SNAPSHOT
Sentry v1.8.4
MyPet-NPC v0.0.4
Worldedit-bukkit-6.0
Thanks for builder in 1.8 guys!
@PaLaS0
Download the 1.8 version of Builder, linked below. Also download the 1.8 version of Citizens. And don't download CItizensAPI, that's not a thing you should have, that's a developer thing only.
If you still get errors, post the error message (From the console) in full.
Hello, I have 1.7.9 builder-citizens2, And citizens,citizensapi, And it says An internal error occured, People say its cause my server is 1.8, But with 1.8 version it still doesnt work...
For the plugin to work always need the Denizen, here the link: http://dev.bukkit.org/bukkit-plugins/denizen/
Builder has been updated to 1.8. It is available as a development build here http://ci.citizensnpcs.co/job/Builder/lastSuccessfulBuild/
@Draconas2013
You're running a plugin updated to 1.7.9 on a 1.8 server, what are you expecting? You can try the dev builds http://ci.citizensnpcs.co/job/Builder/ or bugging Morphan1 on IRC (irc.esper.net#citizens) as I think he said something about maintaining it.
Okay, so I can create the builder, load the schematic, but when I do /builder build I get this: "An internal error occurred while attempting to start up this command!"
Here is what my console reads at the time of the error: http://pastebin.com/rf4nBWnv
Is there something I did wrong? Or another thing you need? Using Spigot 1.8.
@rock022
You can do that through our scripting engine, Denizen.
Hello, im searching this feature: Allow players to rent a builder to buy a structure. Then Npc goes back to spawn. I was wondering if i can do this somehow? If there isn't way to do that please implement that feature :D
@mcmonkey
Here's the error I'm getting.
https://gist.github.com/cmoore/c5c28a8b116ebd0c49c8
edit: I see that the license is public doman... any chance of getting access to the code? :)
edit v2: Github, ahoy! Nevermind!
@Lordcalvert999
Is the 1.7.9 build not compatible? If so, what error does it give?