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.
If you could make a small machine or something that sucked up items in a small radius (and maybe funnelled into a pipe to go into a chest), that would be awesome. It would allow for much more efficient automated farming (such as mob farms, or automatic sugarcane/cacti farms). Thanks in advance if you decide to do this!
@Hoot215
I'd like to make one like that eventually! Not sure yet how to make them work though, I can't just have them auto activate and be "on" permanently.
In the future, will this have furnace support as well as support for custom crafting recipes?
So after working with this plugin, I was wondering if it is possible to make it so that someone could make an elaborate factory. For example, allow players to craft a complete Bookshelf from 2 logs and 9 Sugarcane (Yes, I know this would result with an extra two planks).
I attempted to make this by using a T-intersection with planks attached to the Item Relay. I attached a Fabricator to another Fabricator that attached to the T-intersection. The first would craft the Sugarcane into Paper, and the second would craft the Paper into Books. Now off the other joint of the T-Intersection a third Fabricator would craft the Logs into Planks, and both joints would converge at a second T-Intersection, and would go to a final Fabricator that would craft everything into the Bookshelf.
I also tried it with adding and output chest after each Fabricator, which I attempted to create into another Item Relay. Unfortunately, I kept running into problems with the T-Intersection, as well as trying to make it craft the Books from the Paper when I disconnected the T-Intersection, and just tried to craft Books.
Anyways, if it is possible to make this work, where am I going wrong. If not, would it be possible to be added in the future? Thanks, and I love the plugin.
@bigfredbrandon
You can't chain fabricators directly because they have to look at the inventory of the sender to gather enough materials for a craft. Try using an Item Relay as a buffer for your second stage Fabricator.
For example, I tested a fabricator chain as follows:
If you turn on the first item relay with a lever, the whole chain will activate and begin making fences out of your logs :)
@MinecraftTakeover
I would like it to have furnace support, yes :)
@Lyneira
@Lyneira
@Lyneira
You should make a custom spout version with custom pipe blocks (MoreMaterials)... And make custom machines and GUIS. Now that would be awesome.
bug: when you have a item relay feed a fabricator, then have the output of that fabricator feed back to the chest the item relay is feeding from, the items just disappear.
suggestion: Could you create a way to remotely activate a item relay? when you try to make complex factories, you end up needing to activate several levers and keep an eye on them to make sure they still on.
suggestion 2: Could there be a vertical version of the Item relay and fabricator? I've run into a few situations where a vertical version would be so much better than a horizontal one. though it would need to be capable of facing up and down.
@Redstoner_Pro
I think I know what's causing the bug but it might take some time to figure out the right solution for that.
Remotely activating an item relay: Could you try creating an empty item relay in your "control center" and connect it to the one you want to activate? Even if it's empty, the next one should still activate and begin sending stuff.
Vertical item relay: I'll think about adding one!
I'm noticing that the lever says optional for the item relay... would the lever being there stop the item relay from being activated automatically from another one? I have many fabricators linked with relays, however none of the relays are activated when a signal is sent to them. I have to manually activate the levers on them.
@Redstoner_Pro
The lever lets you activate the item relay manually if you want to, but it doesn't stop it from being activated by another factory machine. If your item relays aren't auto-activating upon receiving items, make sure that the wooden tube connects only to the brick block, not the chest :)
Edit: It works this way because chests can be endpoints for items by themselves, plus it lets the player choose whether the item relay should auto activate or not. :)
I was going to use your system to send items from the bottom of my mine up to the top of my treehouse. For some reason it seems the network will not go that far.
Is there anyway to make this work?
havent seen that anyones mentioned it. but multiple chest receiving chest support would be nice :P
@TheRavencroft
The pathfinding algorithm for a single pipeline has a maximum search size of 300 blocks, if you're making a lot of twists and turns or the path has branches you may have reached that maximum. You can get around it by using an item relay halfway the route. (connect the pipe to the brick block and not the chest) The middle item relay will auto-activate upon receiving items and send them on to your treehouse destination.
@nintendo252
What do you mean? You can send to double chests just fine. Multiple item relays sending to the same destination chest also works.
Awesome!!! Automated bread farms!
But could you maybe add a filter relay? so it will only pick up a certain item (or maybe multiple?). Thanks in advance. And maybe sending over a long distance using signs?
@danielboyz
I was planning to make a "splitter" type machine that will be capable of sorting items, sending some through the left pipe and others through the right pipe depending on the sample items you put in its chest. :)
@Lyneira
Cool, I think that a splitter is a better idea then a filter!
I would like to customize the used blocks. I would prefer iron blocks for the pipeline (for example).
Anyway great mod! Keep up the great work :)
@ChadDean
I hear you :) It's on my todo list!
Thank you for sharing your work!!! This plugin is awesome! Did I hear you mention in a post that you can branch pipelines, and if so what are the rules? Thanks again and in advance for your reply!!