MachinaFactory
MachinaFactory
MachinaFactory allows machina to send objects to other machina through a pipeline of blocks. Included are some machina that can send and process items, but other machina plugins can plug in to MachinaFactory to send anything they like to one another.
Features:
- Pipelines are made of wood blocks.
- Item Relay: Sends items. Works with chest, dispenser or furnace.
- Activated by right-clicking a lever.
- Also activated by receiving an item.
- Chests and Dispensers can receive items.
- Furnaces can receive fuel and burnable materials from Item Relays with a Chest or Dispenser.
- Fabricator: Will try to craft the recipe in its chest and sends the result onward.
- Splitter: Can sort, filter or distribute items.
- Brewing Relay: Can brew potions.
Item Relay
When activated, the Item Relay sends items from its container through a pipeline. If an Item Relay receives an item, it will activate and start sending items as well.
Important: To send items to the relay, connect the pipeline to the brick block, not the container.
Materials:
- 1 Brick Block
- 1 Container:
- Chest
- Dispenser - Sucks in nearby items when active
- Furnace - Receives from a Chest or Dispenser relay, sends smelted results.
- 1 Wooden Plank
- 1 Iron Bars
- (optional) Lever
The item relay will extend when activated, and send items through wood blocks to the nearest target.
Item relay when activated.
Extended Furnace Relay
The Furnace Relay can be extended to up to 8 furnaces. (9 technically but then you can't get a pipeline to it :)) To do this, add furnaces right next or diagonal to the main furnace and connect them to the brick block with iron bars.
Fabricator
The Fabricator will try to craft the recipe in its chest from the inventory of a sending Item Relay and send the result onward through a pipeline.
Important: The Fabricator will look at the leftmost 3x3 slots to determine the recipe.
Materials:
- 1 Brick Block
- 1 Crafting Table
- 1 Chest
- 1 Wooden Plank
- 1 Iron Bars
Place a crafting recipe in the leftmost 3x3 slots of the fabricator's chest.
Place crafting materials in an Item Relay and activate it to start the crafting process.
Item Splitter
The Item Splitter will send items through its two pipes. It can only receive from components with an inventory - An Item Relay with a chest or dispenser.
Can be used in several ways:
- To distribute items evenly
- To sort items
- As a filter.
Its mode depends on whether there are chests on the left and right bookshelves.
- No chest: All items are allowed through the pipe.
- Filter chest: Only items that are in the filter chest are allowed through the pipe.
- If the filter chest is empty, nothing is allowed through.
Materials:
- 1 Brick Block
- 3 Bookshelves
- 0-2 Chests (used as filters)
- 2 Wooden Planks
- 2 Iron Bars
The base item splitter is built as follows:
The Item Splitter can have zero, one or two filter chests.
Filter chests | Mode |
---|---|
0 | Distributor: Sends an item left, right, left, etc. |
1 | Sorter: Items that match the filter chest go to that side, all other items go to the other side. |
2 | Filter: Only items that match the filter chests will get through. |
Note on using a Splitter as a filter
If the two filter chests have overlapping contents, the order within the filter chest becomes important. The splitter takes turns sending through the left and right pipe. On each pipe's turn the first item in the filter chest that can be found in the source inventory is sent.
Brewing Relay
The brewing relay can semi-automatically brew potions.
Features:
- Can distinguish 3 tiers of potions:
- Water bottle
- Awkward potion
- Any other potion
- Gathers from the sender 3 same-tiered potions, and then adds an ingredient for brewing.
- Will fill empty glass bottles with water if a Water Bucket is present in the sending relay.
Planned:
- Filling of empty bottles to water bottles
The brewing relay is built like a normal item relay, but with a pipeline block instead of a chest and a brewing stand on top.
Connect a normal Item Relay with a chest or dispenser to it and put appropriate potions and one type of ingredient in it. (example: Only water bottles and stacks of nether warts)
When the item relay is activated, the brewing relay will collect 3 bottles and add an ingredient, sending the brewed potions to the destination chest.
Caveats:
- Can only receive from chest or dispenser relay.
- Selects first ingredient found to add to the brewing stand, does not take into account the potion type.
- Can only keep alive relays that are directly sending to it.
- Generates items too slowly to keep alive another factory component, so it only works when sending directly to a chest or dispenser. Semi-automatic brewing chains are possible if the destination chest is part of an item relay and activated by a player or by redstone.
Mass Storage
Chest and Dispenser endpoints support mass storage. Any chests or dispensers in the column above and below the endpoint will also be used to store received items. The storage column will fill from bottom to top.
Permissions
permissions: machinafactory.*: children: machinafactory.all: true machinafactory.all: description: Gives full access to MachinaFactory's item machina children: machinafactory.itemrelay: true machinafactory.fabricator: true machinafactory.itemrelay: description: Allows use of Item Relays and Splitters default: op machinafactory.fabricator: description: Allows use of a Fabricator default: op
Configuration
If you've run the plugin at least once, see the config.yml file in the plugin's subdirectory.
@coyclayton
The plugin searches through branches in the pipeline to find the closest destination but it doesn't actually branch items sent through it. A splitter machina that distributes, sorts or filters items is almost done though! :)
First of all, great plugin, really fun to use! The only problem I'm having is with Machina Factory, I have it set up so it sucks up cobblestone through a dispenser, smelts it, then sends it to a chest. For some reason the furnace will keep cutting off on it's own, even if it's still smelting, it will stop sending them periodically. Any idea why this happens?
@DiscoBiscuit06
When I tested a furnace constantly smelting, it worked fine as long as it had both a steady supply of fuel and smeltable items to run... Currently the "keep-alive" time for a factory component is 10 seconds, exactly the time a furnace needs to smelt an item. So thanks for reporting this, might need to increase the keep-alive time just a little bit for this :)
is there a limit for the pipeline length? we build through a tunnel whi is approx 300+ blocks, and the relay doesnt send anything
Any chance you could add a brewing stand fabricator?
@zogga007
You might have run into a minecraft server limitation here.
A pipeline can only work if all the chunks it goes though are loaded, since anything outside that is air. If your pipeline is straight 300 blocks in one direction and there are no other players at the destination, that's probably why it doesn't work.
@kamskywalker
I would like to add support for brewing stands, but I can't promise when :)
I am having no luck daisey-chaining the sorters. Am I doing something wrong, or am I trying to enable something that does not exist?
What I'm trying to do is sort one chest into 5 chests... 1=gunpowder, 2=zombie meat, 3=chicken eggs, 4=string/spider eye, 5=bones/arrows.
first one has 1 chest with eggs, then I take the output into another that has one chest with zombie meat, and.... etc.
I get the eggs exactly right, but the other branch does not activate the 2nd splitter. :(
Great Plug-in man!
One small query. Is it possible to alter the speed the items are transferred with the factory Machina. Just wondering cause if I build a pipeline over 100 blocks the items stil ltransfer ever 2 seconds or so.
Just wondering.
@GaseousMaximus
You have to make sure there is an item relay between two sorters, as the sorter can only receive from something that has an inventory. :)
@SeanLad
The factory system is based on the idea of water flowing through a pipe, where the length of the pipe doesn't affect how much water per second can come out of it.
As for adding a latency for the first item to arrive, It's not really worth the extra complications to add it since it's meant for processing a lot of items while the player does something else.
there is a bug. when trying to send the ingredients of the cake to a fabricator not send anything because the 3 cubes you need to make the cake as debolverlos knew not and does nothing
SORRY IF I WROTE SOMETHING WRONG I AM SPANISH
@esquerbatua
Hmm... Cake is a rather special recipe because it's supposed to retun the milk buckets as emtpy buckets. I haven't actually tested making cake but if it worked at all it would eat the milk buckets from the chest and not return them empty. So I wouldn't try that at the moment.
Will have to fix that in a later release.
@Lyneira
Hey cool plugin, I also was working on something similar, inspired by Buildcraft pipes / RedPower tubes / Minefactory conveyors, but I think yours is better :). For the cake recipe, there is a native method you can call to get the "container" item – for milk, this is the bucket. I do this in BetterDispensers's automatic crafter dispenser, feel free to check out how I do it if you want, its open source :p.
@mushroomhostage
Glad you like the plugin! I looked at your source but couldn't find the method you were referring to. Seeing that you use classes and methods from net.minecraft.server, is the method you're referring to in that part of craftbukkit?
is there a way to auto send through the items from a furnace, without adding another item relay. (i want to flip one switch not two)
hope you understand what i meant :)
cheers
and yes i know about the redstone bridge :)
edit:
also is it possible to have several splitters after eachother ?
i can't get it to work, ill stop testing untill i know about this.
@plumblum
Can you describe the situation with the furnace in detail?
As for the splitter: A splitter actually searches through the inventory of the machina that connects to it, so it can only work when a chest or dispenser relay connects to it.
@Lyneira
ill try :P im not a native english speaker so bear with me, i was thinking of building a mass relay of furnaces starting from one chest, i read through some comments on the plugin yesterday and found out that you need to have an item relay after each sorter.
so i started with relay --> sorter (used as splitter) --> relay -- > sorter and so on until from one chest i had 16 outputs each leading to separate furnaces and then back, as you can imagine this takes up huge amounts of space :) luckily the redstone doesn't interfere with the machina, so it works! kinda, when i start the system everything "starts" and the iron fences flips, but since most of the sorters/splitters don't have anything to send it creates "gaps" in the process so they stop.
what id like to do is remove all the item relays :) maybe its possible to make like an 1 to 8 sorter ?
otherwise this system is way to slow with each of the relays just turning of when they have nothing to do, even if the start chest still continues to send items.
my original post was that seems kinda unnecessary to have relay -> furnace - ->relay -- > chest
it would be a lot cleaner with just relay - furnace - chest, it seems like a small change but for us really using the plugin to its max it would make thing so much easier :)
cheers
@plumblum
I think I see what you're saying, a 1 to 8 splitter alone wouldn't solve this though. Since a splitter alternates between its two outputs, the problem is that splitting items up by that much reduces the send frequency to 1/8th of normal, probably not enough to keep the furnace relay going. I'll see if I can think up a solution that makes large scale cooking more feasible to build.
@Lyneira
many thanks :)
this plugin packet is one of the most stable ones i have ever had the pleasure of using :)
keep up the good work.
update: well i don't really mind if some of the furnaces don't have enough to smelt, that's kinda the point :) the system should wait for materials not the other way around, what i don't want to do is flick the same switch over and over to get all the material from beginning to the end just cutting out all the item relays would do it and keeping the splitters in an "on" state, but since this is not possible an 1 to 8 splitter would definitely work for me, if you didn't need the item relays after the furnace.
maybe it is possible to do it like this : link to image
It would help very much if you can make everything activate with a redstone current and/or a lever.Trying to make a huge factory from mob spawners and stuff but haveing fun trying to get around the levers everywere. :/ Love your plugin but if you're trying to build large things like i am then it is dificult but if you're building small this is just right.