mirror of
https://github.com/Sokomine/cottages.git
synced 2025-07-04 17:10:23 +02:00
added missing textures; made indigrents for craft receipes configurable; added compatibility for realtest; added wool in case no wool is installed; other minor tweaks
This commit is contained in:
83
adaptions.lua
Normal file
83
adaptions.lua
Normal file
@ -0,0 +1,83 @@
|
||||
-- some games may not have the default nodes;
|
||||
-- change this so that craft receipes work!
|
||||
|
||||
-- used for: anvil, hammer, barrel, steel hatch, stove pipe, wagon wheel, handmill.
|
||||
cottages.craftitem_steel = "default:steel_ingot";
|
||||
-- used for: hammer, wood+steel hatch, fence gate, bed, table, bench, shelf,
|
||||
-- washing place, wagon wheel, glass pane, flat wood, handmill,
|
||||
-- operating the treshing floor.
|
||||
cottages.craftitem_stick = "group:stick";
|
||||
-- used for: treshing floor, handmill, slate roof, vertical slate
|
||||
cottages.craftitem_stone = "default:stone";
|
||||
-- used for: window shutter, half door, half door inverted, fence gate,
|
||||
-- bed, bench, shelf, roof connector, vertical slate
|
||||
cottages.craftitem_wood = "group:wood";
|
||||
-- used for: half door
|
||||
cottages.craftitem_door = "doors:door_wood";
|
||||
-- used for: small fence
|
||||
cottages.craftitem_fence = "default:fence_wood";
|
||||
-- used for: bed (head+foot), wool for tents
|
||||
cottages.craftitem_wool = "wool:white";
|
||||
-- used for: washing place, loam
|
||||
cottages.craftitem_clay = "default:clay";
|
||||
-- used for: wagon wheel
|
||||
cottages.craftitem_iron = "default:iron_lump";
|
||||
-- used for: dirt road, brown roof (if no homedecor is installed)
|
||||
cottages.craftitem_dirt = "default:dirt";
|
||||
-- used for: loam
|
||||
cottages.craftitem_sand = "default:sand";
|
||||
-- used for: glass pane
|
||||
cottages.craftitem_glass = "default:glass";
|
||||
-- used for: reet roof, reet block
|
||||
cottages.craftitem_papyrus = "default:papyrus";
|
||||
-- used for: black roof (if no homedecor is installed)
|
||||
cottages.craftitem_coal_lump = "default:coal_lump";
|
||||
-- used for: red roof (if no homedecor is installed)
|
||||
cottages.craftitem_clay_brick = "default:clay_brick";
|
||||
-- used for: treshing floor
|
||||
cottages.craftitem_junglewood = "default:junglewood";
|
||||
cottages.craftitem_chest_locked = "default:chest_locked";
|
||||
-- used for: hatch, table
|
||||
cottages.craftitem_slab_wood = "stairs:slab_wood";
|
||||
|
||||
-- texture used for fence gate and bed posts
|
||||
cottages.texture_furniture = "default_wood.png";
|
||||
-- texture for the side of roof nodes
|
||||
cottages.texture_roof_sides = "default_wood.png";
|
||||
-- if the default wood node does not exist, use an alternate wood texture
|
||||
-- (which is also used for furnitures and doors in this mod)
|
||||
if( not( minetest.registered_nodes['default:wood'])) then
|
||||
cottages.texture_roof_sides = "cottages_minimal_wood.png";
|
||||
cottages.texture_furniture = "cottages_minimal_wood.png";
|
||||
end
|
||||
|
||||
-- texture for roofs where the tree bark is the main roof texture
|
||||
cottages.textures_roof_wood = "default_tree.png";
|
||||
if( not( minetest.registered_nodes["default:tree"])) then
|
||||
-- realtest has diffrent barks; the spruce one seems to be the most fitting
|
||||
if( minetest.registered_nodes["trees:spruce_log" ]) then
|
||||
cottages.textures_roof_wood = "trees_spruce_trunk.png";
|
||||
|
||||
-- this is also an indicator that we are dealing with realtest;
|
||||
cottages.craftitem_steel = "metals:pig_iron_ingot";
|
||||
-- stone exists, but is hard to obtain; chiseled stone is more suitable
|
||||
cottages.craftitem_stone = "default:stone_flat";
|
||||
-- there are far more diffrent wood tpyes
|
||||
cottages.craftitem_wood = "group:planks";
|
||||
cottages.craftitem_door = "doors:door_birch";
|
||||
cottages.craftitem_fence = "group:fence";
|
||||
cottages.craftitem_clay = "grounds:clay_lump";
|
||||
cottages.craftitem_iron = "group:plank"; -- iron lumps would be too specific
|
||||
cottages.craftitem_coal_lump = "minerals:charcoal";
|
||||
cottages.craftitem_junglewood = "trees:chestnut_planks";
|
||||
cottages.craftitem_slab_wood = "group:plank";
|
||||
else
|
||||
-- does not look so well in this case as it's no bark; but what else shall we do?
|
||||
cottages.textures_roof_wood = "cottages_minimal_wood.png";
|
||||
end
|
||||
end
|
||||
|
||||
if( not( minetest.registered_nodes["wool:white"])) then
|
||||
cottages.craftitem_wool = "cottages:wool";
|
||||
end
|
||||
|
Reference in New Issue
Block a user