mirror of
https://github.com/Sokomine/cottages.git
synced 2024-11-14 14:30:33 +01:00
55 lines
1.2 KiB
Markdown
55 lines
1.2 KiB
Markdown
|
# anvil
|
||
|
|
||
|
* `cottages.anvil.make_unrepairable(itemstring)`
|
||
|
makes the item unrepairable in the anvil
|
||
|
* `cottages.anvil.can_repair(item_or_stack)`
|
||
|
returns true/false
|
||
|
|
||
|
# barrel
|
||
|
|
||
|
* `cottages.barrel.register_barrel_liquid(def)`
|
||
|
```lua
|
||
|
def = {
|
||
|
liquid = "default:water_source",
|
||
|
liquid_name = S("Water"),
|
||
|
liquid_texture = "default_water.png",
|
||
|
liquid_input_sound = cottages.sounds.water_empty,
|
||
|
liquid_output_sound = cottages.sounds.water_fill,
|
||
|
bucket_empty = "bucket:bucket_empty",
|
||
|
bucket_full = "bucket:bucket_water",
|
||
|
}
|
||
|
```
|
||
|
# doorlike
|
||
|
|
||
|
* `api.register_hatch(nodename, description, texture, receipe_item, def)`
|
||
|
|
||
|
# feldweg
|
||
|
|
||
|
* `api.register_feldweg(node, suffix)`
|
||
|
register feldweg variants of a node
|
||
|
|
||
|
# roof
|
||
|
|
||
|
* `cottages.roof.register_roof(name, material, tiles)`
|
||
|
register roof variants of a node
|
||
|
|
||
|
# straw
|
||
|
|
||
|
* `api.register_quern_craft(recipe)`
|
||
|
register a crafting recipe w/ the quern. recipe is like
|
||
|
```lua
|
||
|
{
|
||
|
input = "farming:seed_barley",
|
||
|
output = "farming:flour",
|
||
|
}
|
||
|
```
|
||
|
|
||
|
* `api.register_threshing_craft(recipe)`
|
||
|
register a crafting recipe w/ the threshing floor. recipe is like
|
||
|
```lua
|
||
|
{
|
||
|
input = "farming:barley",
|
||
|
output = {"farming:seed_barley", "cottages:straw_mat"},
|
||
|
}
|
||
|
```
|