This plugin is written to replace CraftBook and CraftBookMechaisms, because they lacked some features I needed on the server.
I've also added a new feature, called the pen.
CraftBook-stuff (take a look at the CraftBook wiki to find out how you build these):
- Hidden switch
Bridges, Gates and Doors need a chest with the items, so they're not spawned.
- Small door, a door with width 1. Sign label is [sDoor]/[sDoor Up]/[sDoor Down].
- Small bridge, a bridge with width 1. Sign label is [sBridge]/[sBridge End].
- TeleLift, a lift that works like /tele and teleports you to given coordinates. Sign label is [TeleLift] Coordinates have to be put on the 3rd line in syntax: [x:z:y] (so separated by colons).
you can put text in your memory and paste it on a sign. This only works if you can build in the area.
Very useful if you have a plugin like MinecartMania running. How this works:
/pen set <text> » set the sign text (the char '^' is a line break)
/pen setline <line> <text> » set one line of the text (lines start at 0)
/pen clear » clears the current text
/pen dump » dumps the current text
/pen clearline <line> » clears the line (set to "", lines start at 0)
Right clicking a sign will either place the text on the sing, or, if your memory is emtpy, load the text in your memory.
The tool can be changed in the config, but the default tool is a piece of (char)coal.
All these features have permission nodes, and a (Meaglin's) Zones and/or WorldGuard check is possible. Just edit the config to enable or disable these features. The permission nodes are:
bettermechanics.small_bridge.use bettermechanics.small_bridge.create bettermechanics.bridge.use bettermechanics.bridge.create bettermechanics.small_gate.use bettermechanics.small_gate.create bettermechanics.gate.use bettermechanics.gate.create bettermechanics.small_door.use bettermechanics.small_door.create bettermechanics.door.use bettermechanics.door.create bettermechanics.lift.use bettermechanics.lift.create bettermechanics.hidden_switch.use bettermechanics.hidden_switch.create bettermechanics.ammeter bettermechanics.cauldron bettermechanics.pen And for reloading the config: bettermechanics.reloadconfig
Source code: https://github.com/Edoxile/BetterMechanics
If you find any bugs, or if you have a brilliant new feature that should be added, please let me know!
Credits go to sk89q for both the idea, and pieces of code that I've used of him. Also thanks to Meaglin and GuntherDW for fixing some bugs.