MachinaCraft
Plugin under development!
This plugin has not been updated since MC version 1.5 so some if not all features will not work. While I find the time to update and expand it please use starcomedon's fork of this same plugin. you can find it Here!
What is MachinaCraft?
MachinaCraft is a framework for machines made up out of blocks, activated by right-clicking on a lever. It is modular and includes several plugins that can make repetitive tasks easier, such as digging or building in a line, even placing and clearing bodies of water. Because it is modular, other plugins can also use MachinaCraft to make their own activatable machines.
How do I build a Machina?
Similar to crafting something on a crafting table, but in the game world. Place blocks in the world in a predefined way and put a lever on the right block. Rightclick the lever, and if you built it correctly, the Machina will activate.
A demonstration please!
- Plugin Showcase by WoopaGaming
- A video series in German by BukkitDE - 1, 2, 3
Machina Plugin Info & Permissions
These are the Machina plugins available right now, included in the download:
- MachinaDrill
- MachinaBuilder
- MachinaPump
- HoverPad
- MachinaFactory
- MachinaPlanter
- MachinaRedstoneBridge
On their respective pages you can find pictures, instructions how to build them, and the permission nodes available for them.
Plugins that work with MachinaCraft
- SignShop 2 can activate a machina with a sign, possibly with a cost.
Permissions
To enable all machinacraft permissions at once, replace your server's permissions.yml with the included permissions.yml. (or add the contents if you already have something there)
This works even if you do not have a permissions plugin.
If you do have a permissions plugin and want more control, you can change the default in permissions.yml to 'op' and use the global permission node:
machinacraft
Troubleshooting
Are you having trouble getting MachinaCraft to work? Take a look at the Troubleshooting page.
Anti Cheating Plugins
Does your server use an anti cheating plugin such as NoCheatPlus? See MachinaCraft and other plugins.
Plugin Developers
MachinaCraft allows other plugins to register a blueprint for the Machina they implement. When a player rightclicks a lever, MachinaCraft will ask each registered blueprint to detect itself at that location. If successful, a new Machina is created from that blueprint.
MachinaCraft will periodically ask the Machina to check its integrity, and if successful send a heartbeat in which it can take action. The Machina can inform MachinaCraft when it should receive the next heartbeat, what its new location is (if any), or deactivate itself.
Included is an optional framework that:
- Simplifies specifying the blueprint
- Implements the integrity check for your Machina using the above blueprint
- Can move a Machina 1 block up, down, north, east, south, west
- Can teleport the Machina to a location
- Can rotate the Machina
- Can detect collisions for move, teleport, rotate actions
- Supports blocks that have additional data such as torches, levers, rails, and blocks with inventory such as furnaces and chests
- Support for optional modules.
Plugin developers looking for an example can take a look at the code for MachinaCraft.
On Hiatus
Short version: I'm on hiatus from Minecraft and developing this plugin, but the source code is available for anyone who wants to fork this and continue development.
Long version: As some of you may know, I haven't updated MachinaCraft in some time and I wanted to explain a little bit. Minecraft has taken a back seat for me in the last couple months. Also, the server I play on is Forge-based rather than Bukkit-based, which means I haven't been able to play with the results of my own plugin for a long time now. That has been a real motivation killer which is why there hasn't been any real development activity.
So it hasn't been an easy decision but I'm now officially on hiatus. My apologies to you who were hoping for more updates and even more features or cool machines - unfortunately I won't be the one implementing them. The project is open source however, and I hope there is someone out there who is willing to pick up the torch - you've got my blessing if you do.
Last but not least, a thanks to everyone who visited this site, helped out others with their questions when I wasn't around to answer them, or just had fun with the plugin! :)
To plugin developers
You're free to fork the project and continue under a new name, or use this project page to release an update, just contact me and I'll add you as an author. If you do want to pick up development I'd be happy to give some pointers via PM or irc (#bukkitdev) to help you get familiarized with the code.
The source code is available on the repository under the machinacraft4 branch.
@ToddVee
Thanks for reporting, found the cause and the item bug is fixed in the latest version now. :)
Re SignShop: I can understand that it's not ideal for them, but there are a couple reasons why it has to be a rightclick event and not redstone. The most important one is that a machina must have a player owner to do its permission checks, and there is no way to determine the owner by listening for redstone events.
big thx Lyneira. So, yeah that was a quite compact description of the bug, therefore now the extended description of the buggy production line:
1. There is a chest where wooden planks of any type are stored. The chest "sends" the items to an automatic crafting table, where sticks are crafted. After that, they are being sent into an "intermediate" chest, an the a central storage chest. Other items arrive also in the central storage chest, e.g. iron ingots. Now, from that chest, there's a line to another autom. crafting table which crafts rails and sends the rails to the final storage chest.
the bug: If I begin to send planks to the first crafting table and "activate" the item relay from the interm. chest to the central storage chest, an infinite number of sticks is being sent.
i really hope this is a useful illustration for you...
Hey what is the permissions for the hoverpad? I could not find it onthe hover pad page.
@ToddVee
I can fix that for the machinafactory machines, but not moving ones as LWC's protections are linked to a specific location.
I don't see any dupe bug resulting from what as in your last post, so can you show/explain to me in more detail?
@andyvorld
You are using the wrong release with the wrong craftbukkit version. Version 3.0.2 is suitable for 1.2.3-R0.2 while 3.1.0 needs a development build 1.2.4-R0.1. Unfortunately devbukkit won't let me tag the latest release for the proper version so I had to add it as a note in the changelog.
unfortunately got a dupe bug now. chest
> autom. crafting table> chest> chest leads to dupe bug. tested with sticks.when ever i try to activate any of the builders or drills i always get this error http:pastebin.com/raw.php?i=GCQafJjK
well it seems its not that easy. I also postet a comment in the other mods comment box. maybe they have an idea or know, what is wrong there (could be some kind of setup or bug).
anyways, another thing that came to my attention: chests that work as "recieving" chests will lose their lwc lock. is this to be fixed?
thx for your quick reply!
@ToddVee
Glad you enjoy the mod! :) It should be possible for another plugin to activate a machina, even a moving one if it is lucky enough to know where the lever for the machine currently is. All it needs to do is trigger a rightclick event on the lever so MachinaCraft will start detection :)
hi,
so basically this mod is what I am looking for-machines in minecraft. Awesome work, Lyneira! I would like to share some ideas with you that come to my mind when using this and other mods. since the machines are triggered by levers and SignShop 1.6.8 can trigger levers, would it be possible to link it? I mean you`re maybe not into SignShop, but there is certainly a reason why a lever triggered by the shop does not activate your machines (the stationary ones, the moving ones are surely impossible to trigger because of the different places the lever would then have). If a cooperation of the two plugins is possible, we could build some really freaking control rooms with a lot of signs controlling numerous machines... If this is impossible, any chance to trigger machines with redstone? Anyways, very well done so far!
@Arstan13
Added to the to-do list :)
@hatefulbox
Look here for information about making MachinaCraft work with NoCheat. :)
any chance that we could get a customizable blueprint for this? I personally think wool, planks, lever and redstone lamp too easy. something like lapis instead of blue wool and iron block instead of planks. just an example. Really bomb plugin!
@hatefulbox
Are you using NoCheat? If so, it's known to break this plugin.
@Lyneira
I got the plugin working on that dev build you posted, but when anyone that is not op trys to use it it just does not work. As far as i know they have permission and also there are no error messages. We are using group manager if that would have anything to do with it.
@Lyneira
Thank you! *Loves you long time*
@xBladeM6x
Here's a quick version that works with CraftBukkit 1.2.4 :)
Unfortunately the newest version doesn't work with 1.2.4 properly. Nothing activates. Looking forward to update! Dx
Here's the problem. It's what happens when someone builds it, then tries to use it.
http://pastebin.com/FV79gBps
This is the best plugin ever! its really amazing how much this is like build-craft but with out the client mod!
big thanks for your about updates your plugin it"s real buildcraft now/ please updates your plugins is cool awesome and i dont know more good words in english) please add new machins
@h0us3cat
I've tried to make the events generated by the drill and builder consistent so that a rollback would at least fix the terrain modified by them, but after testing a bit with logblock it seems it doesn't quite understand some of the events being sent, as the rollback I tested left iron blocks and a couple chests/furnaces. I'm not familiar enough with logblock to have any idea what I can do to fix that though.
@Taeila_Fae
Thank you, I'm glad you appreciate the plugin! :D
@Lyneira:
I just wanted to let you know, how much we appreciate your plug-ins. Ever since I was running my own survival-mode craftbukkit server, I was looking for something to ease our pain to gather all the materials we needed build our projects. We have used many different plug-ins, but yours are superior to everything we've seen before. One can massively change the world, but still keep the 'survival feeling'. Especially the pump is a unique tool, since working with water is always an annoying hassle. And now, creating a lake is nothing but a flip of a switch. :D
Thank you so much! Keep up the good work and excuse my mediocre English. :s