1
0
mirror of https://github.com/Sokomine/cottages.git synced 2024-11-16 07:20:30 +01:00
cottages/API.md
2023-01-23 16:07:26 -08:00

1.2 KiB

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)
    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

    {
        input = "farming:seed_barley",
        output = "farming:flour",
    }
    
  • api.register_threshing_craft(recipe) register a crafting recipe w/ the threshing floor. recipe is like

    {
        input = "farming:barley",
        output = {"farming:seed_barley", "cottages:straw_mat"},
    }