Skip to content

Third Party Integration

Eng1N33R edited this page Dec 16, 2020 · 2 revisions

There are a few ways you may want to integrate your mod with Mechanical Tech. Here are some helpful hints and pointers.

Recipes

Mechanical Tech exposes three recipe types: mechanicaltech:milling, mechanicaltech:grinding and mechanicaltech:sawing. All three follow the same format. As an example, the flour recipe looks like this:

{
  "type": "mechanicaltech:milling",
  "ingredient": {
    "item": "minecraft:wheat"
  },
  "result":{
    "item": "mechanicaltech:flour"
  },
  "time": 300
}

ingredient may be a tag instead of an item, and both ingredient and result may have a count property to consume or produce more than one item. time is equivalent to how much MU the recipe requires - 300 MU is equivalent to 300 ticks' (15 seconds') worth of waterwheel work.

Power integration

Currently, Mechanical Tech does not ship with its own power conversion add-ons. Balancing power conversion rates may be tricky, and more feedback is required until the project is in a place to ship with its own power conversion modules. However, if you would like to create your own add-on, please familiarise yourself with the Dynamo API.

  • Your MU-to-other transformer BlockEntity should implement Receiver.
  • Your other-to-MU transformer BlockEntity should implement Supplier.

Work on first-class power conversion modules is tracked under this issue.

Clone this wiki locally