1
0
mirror of https://github.com/Sokomine/cottages.git synced 2024-09-29 16:00:32 +02:00
cottages/resources/craftitems.lua
fluxionary a850b736d7
Rework (#2)
* compatibility w/ broken tools

* use staminoid if available

* right, no fmod

* don't include carts texture when carts is not available

* change rope recipe to avoid conflict w/ ethereal

* change barrel recipe to avoid conflict w/ wine

* staminoid integration: use more stamina

* change recipe for glass pane to avoid conflict w/ xdecor

* tree trunk well: compatibility w/ bucket redo

* anvil: more stamina usage

* anvils: more expensive, and not movable

* allow filling glasses of water when using bucket redo

* get safe short description when reporting about tool on anvil

* make sure slabs are registered when using the moreblocks 3.0
2023-08-23 10:34:31 -07:00

85 lines
2.4 KiB
Lua

local has = cottages.has
local resolve_item = cottages.util.resolve_item
local ci = {}
ci.stick = "group:stick"
ci.wood = "group:wood"
ci.tree = "group:tree"
if has.default then
ci.chest_locked = resolve_item("default:chest_locked")
ci.clay_brick = resolve_item("default:clay_brick")
ci.clay = resolve_item("default:clay")
ci.coal_lump = resolve_item("default:coal_lump")
ci.dirt = resolve_item("default:dirt")
ci.fence = resolve_item("default:fence_wood")
ci.glass = resolve_item("default:glass")
ci.iron = resolve_item("default:iron_lump")
ci.junglewood = resolve_item("default:junglewood")
ci.ladder = resolve_item("default:ladder")
ci.paper = resolve_item("default:paper")
ci.papyrus = resolve_item("default:papyrus")
ci.rail = resolve_item("default:rail")
ci.sand = resolve_item("default:sand")
ci.steel = resolve_item("default:steel_ingot")
ci.steelblock = resolve_item("default:steelblock")
ci.stone = resolve_item("default:stone")
end
if has.bucket then
if bucket.fork == "flux" then
ci.bucket = resolve_item("bucket:bucket_steel")
else
ci.bucket = resolve_item("bucket:bucket_empty")
ci.bucket_filled = resolve_item("bucket:bucket_river_water")
end
end
if has.carts then
ci.rail = resolve_item("carts:rail")
end
if has.default then
ci.river_water = resolve_item("default:river_water_source")
end
if has.doors then
ci.door = resolve_item("doors:door_wood")
end
if has.farming then
ci.barley = resolve_item("farming:barley")
ci.cotton = resolve_item("farming:cotton")
ci.flour = resolve_item("farming:flour")
ci.oat = resolve_item("farming:oat")
ci.rice = resolve_item("farming:rice")
ci.rice_flour = resolve_item("farming:rice_flour")
ci.rye = resolve_item("farming:rye")
ci.seed_barley = resolve_item("farming:seed_barley")
ci.seed_oat = resolve_item("farming:seed_oat")
ci.seed_rye = resolve_item("farming:seed_rye")
ci.seed_wheat = resolve_item("farming:seed_wheat")
ci.string = resolve_item("farming:string")
ci.wheat = resolve_item("farming:wheat")
end
if has.stairsplus and has.default then
ci.slab_wood = resolve_item("default:slab_wood_8")
elseif has.moreblocks and resolve_item("moreblocks:slab_wood") then
ci.slab_wood = resolve_item("moreblocks:slab_wood")
elseif has.stairs then
ci.slab_wood = resolve_item("stairs:slab_wood")
end
if has.wool then
ci.wool = resolve_item("wool:white")
else
ci.wool = "cottages:wool"
end
ci.straw_mat = "cottages:straw_mat"
cottages.craftitems = ci