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"
please update to 1.8!
When i try and set an schematic for him to rebuild when blocks broken he just disappears once i type /builder build
Is there a max size to the builder? (Like for the file schematic)
@mcmonkey4eva
OK thanks. I'll look into it.
@Rixxan
Yeah no there isn't a 1.7.9 version of Builder. You'd need to update everything to 1.7.10 (latest dev builds!), or downdate back to... 1.7.2 I think. Obviously, updating to 1.7.10 is better.
@mcmonkey4eva
ok thanks. So I just need to go down to the 1.7.9 version and delete the config and start over?
EDIT
It didn't work. A clean install of plugin, and i still get the internal error, Here's the log.
[09:20:41] [Server thread/INFO]: Rixxan issued server command: /builder survey
[09:20:41] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'builder' in plugin Builder v0.9.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:956) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R4/NBTBase
at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) [?:?]
at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java:61) [?:?]
at net.jrbudda.builder.BuilderTrait.GetMatsList(BuilderTrait.java:256) [?:?]
at net.jrbudda.builder.Builder.onCommand(Builder.java:509) [?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
... 13 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R4.NBTBase
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_51]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_51]
at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) [?:?]
at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java:61) [?:?]
at net.jrbudda.builder.BuilderTrait.GetMatsList(BuilderTrait.java:256) [?:?]
at net.jrbudda.builder.Builder.onCommand(Builder.java:509) [?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
... 13 more
Please help :( the citizens snapshot 2.0.13 snapshot doesn't register as citizens 2 plugin
@Rixxan
You're using a 1.7.10 plugin on a 1.7.9 server.
Hi all.
I'm having an issue with this AMAZING plugin. I want to build a very small schematic, but every time I try, I get this message after loading the schematic. I'm running a 1.7.9 bukkit build , and am up to date on all my plugins. This is the error I get:
[20:02:53] [Server thread/INFO]: Rixxan issued server command: /builder survey
[20:02:53] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'builder' in plugin Builder v0.9.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:956) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_7_R4/NBTBase
at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) [?:?]
at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java:61) [?:?]
at net.jrbudda.builder.BuilderTrait.GetMatsList(BuilderTrait.java:256) [?:?]
at net.jrbudda.builder.Builder.onCommand(Builder.java:509) [?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
... 13 more
Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_7_R4.NBTBase
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_51]
at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_51]
at net.jrbudda.builder.EmptyBuildBlock.getMat(EmptyBuildBlock.java:19) [?:?]
at net.jrbudda.builder.BuilderSchematic.BuildQueue(BuilderSchematic.java:61) [?:?]
at net.jrbudda.builder.BuilderTrait.GetMatsList(BuilderTrait.java:256) [?:?]
at net.jrbudda.builder.Builder.onCommand(Builder.java:509) [?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.7.9-R0.2.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
... 13 more
Could someone please tell me what to do? or do I need to provide any more information? I had this issue with postal but it worked itself out in the end. Help!
I'm having the same error and I tried running 1.7.10 and 1.7.9, same result!
EDIT: Nevermind, I used the dev build here: http://ci.citizensnpcs.co/job/Builder/
@ericgolde555
You're running a 1.7.9 version of builder on a 1.7.5 server.
[11:11:39 INFO]: ericgolde555 issued server command: /npc create Bob --trait bui
lder
[11:11:49 INFO]: ericgolde555 issued server command: /builder load house
[11:11:54 INFO]: ericgolde555 issued server command: /npc select
[11:11:59 INFO]: ericgolde555 issued server command: /npc select
[11:12:02 INFO]: ericgolde555 issued server command: /npc remove
[11:12:06 INFO]: ericgolde555 issued server command: /builder build
[11:12:09 INFO]: ericgolde555 issued server command: /npc select
[11:12:11 INFO]: ericgolde555 issued server command: /builder build
[11:12:11 ERROR]: null
org.bukkit.command.CommandException Unhandled exception executing command 'buil
der' in plugin Builder v0.9.1
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[cra
ftbukkit.jar:git-Spigot-1377]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18
0) ~[craftbukkit.jar:git-Spigot-1377]
at org.bukkit.craftbukkit.v1_7_R2.CraftServer.dispatchCommand(CraftServe
r.java:719) ~[craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.PlayerConnection.handleCommand(PlayerCon
nection.java:984 [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.PlayerConnection.a(PlayerConnection.java
:829) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.PacketPlayInChat.a(PacketPlayInChat.java
:28) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.PacketPlayInChat.handle(PacketPlayInChat
.java:65) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.NetworkManager.a(NetworkManager.java:148
) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.ServerConnection.c(ServerConnection.java
:77) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.MinecraftServer.v(MinecraftServer.java:7
03) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.DedicatedServer.v(DedicatedServer.java:2
73) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.MinecraftServer.u(MinecraftServer.java:5
66) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.MinecraftServer.run(MinecraftServer.java
:472) [craftbukkit.jar:git-Spigot-1377]
at net.minecraft.server.v1_7_R2.ThreadServerApplication.run(SourceFile:6
18) [craftbukkit.jar:git-Spigot-1377]
Caused by: java.lang.NoClassDefFoundError net/minecraft/server/v1_7_R3/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) ~[cra
ftbukkit.jar:git-Spigot-1377]
... 13 more
Caused by: java.lang.ClassNotFoundException net.minecraft.server.v1_7_R3.NBTBas
e
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
java:67) ~[craftbukkit.jar:git-Spigot-1377]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
java:62) ~[craftbukkit.jar:git-Spigot-1377]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_45]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_45]
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) ~[cra
ftbukkit.jar:git-Spigot-1377]
... 13 more
please help or tell me wht I did wrong!!
Guys what should i set the /builder timeout ( ) and /npc speed ( ) to make the fastest way to build?
I am having two major issues on [Builder] Loading Builder v0.9.0 running [Citizens] Loading Citizens v2.0.11-SNAPSHOT (build 1098) runningThis server is running CraftBukkit version git-Bukkit-1.7.2-R0.3-b3020jnks (MC: 1.7.2) (Implementing API version 1.7.2-R0.3)
1) Builder does not use the /builder origin schematic correctly. Usuauly off by 1 or 2.
2) Builder is not placing command blocks and signs data correctly anymore.
Any help would be much appreciated. Thank you
@wuarscht
I have this same exact problem and its driving me crazy! I even wrote my own 100 lines of code trying to fix it with no luck. have you had any answer on this yet?
Let me know thanks!
Is there a way to make builders not build through bedrock?
I still have the Problem, that /builder origin schematic is sometimes one block off in one direction and sometimes one of in 2 directions! It reaheally brakes so many of my scripts... :( Im on the newest builds of worldedit and builder but the problem i have since 1.7.9 i think.
@Rinzet132
Look in your console - post the full error visible there.
Hello I have a problem I put to build a house and tells me an internal error occured while attempling to perform this command
I have the 1.7.2 and it does nothing. When i try to load a schematic file it says it can't find one in plugins/Builder/schematics File not found.
The schematics are there but.....
It does not trow any errors.
@maxlehot1234
You're running a 1.7.10 plugin on 1.7.9 (Did you download a dev build you weren't told to by a developer?)
That doesn't work.
Click the 'Download' link at the top, which currently is a 1.7.9 build.