adaptions.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. -- some games may not have the default nodes;
  2. -- change this so that craft receipes work!
  3. -- used for: anvil, hammer, barrel, steel hatch, stove pipe, wagon wheel, handmill.
  4. cottages.craftitem_steel = "default:steel_ingot";
  5. -- used for: hammer, wood+steel hatch, fence gate, bed, table, bench, shelf,
  6. -- washing place, wagon wheel, glass pane, flat wood, handmill,
  7. -- operating the treshing floor.
  8. cottages.craftitem_stick = "group:stick";
  9. -- used for: treshing floor, handmill, slate roof, vertical slate
  10. cottages.craftitem_stone = "default:stone";
  11. -- used for: window shutter, half door, half door inverted, fence gate,
  12. -- bed, bench, shelf, roof connector, vertical slate
  13. cottages.craftitem_wood = "group:wood";
  14. -- used for: half door
  15. cottages.craftitem_door = "doors:door_wood";
  16. -- used for: small fence
  17. cottages.craftitem_fence = "default:fence_wood";
  18. -- used for: bed (head+foot), wool for tents
  19. cottages.craftitem_wool = "wool:white";
  20. -- used for: washing place, loam
  21. cottages.craftitem_clay = "default:clay";
  22. -- used for: wagon wheel
  23. cottages.craftitem_iron = "default:iron_lump";
  24. -- used for: dirt road, brown roof (if no homedecor is installed)
  25. cottages.craftitem_dirt = "default:dirt";
  26. -- used for: loam
  27. cottages.craftitem_sand = "default:sand";
  28. -- used for: glass pane
  29. cottages.craftitem_glass = "default:glass";
  30. -- used for: reet roof, reet block
  31. cottages.craftitem_papyrus = "default:papyrus";
  32. -- used for: black roof (if no homedecor is installed)
  33. cottages.craftitem_coal_lump = "default:coal_lump";
  34. -- used for: red roof (if no homedecor is installed)
  35. cottages.craftitem_clay_brick = "default:clay_brick";
  36. -- used for: treshing floor
  37. cottages.craftitem_junglewood = "default:junglewood";
  38. cottages.craftitem_chest_locked = "default:chest_locked";
  39. -- used for: hatch, table
  40. cottages.craftitem_slab_wood = "stairs:slab_wood";
  41. -- texture used for fence gate and bed posts
  42. cottages.texture_furniture = "default_wood.png";
  43. -- texture for the side of roof nodes
  44. cottages.texture_roof_sides = "default_wood.png";
  45. -- if the default wood node does not exist, use an alternate wood texture
  46. -- (which is also used for furnitures and doors in this mod)
  47. if( not( minetest.registered_nodes['default:wood'])) then
  48. cottages.texture_roof_sides = "cottages_minimal_wood.png";
  49. cottages.texture_furniture = "cottages_minimal_wood.png";
  50. end
  51. cottages.texture_chest = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
  52. "default_chest_side.png", "default_chest_side.png", "default_chest_front.png"};
  53. -- the treshing floor produces wheat seeds
  54. cottages.craftitem_seed_wheat = "farming:seed_wheat";
  55. cottages.texture_wheat_seed = "farming_wheat_seed.png";
  56. cottages.texture_stick = "default_stick.png";
  57. -- texture for roofs where the tree bark is the main roof texture
  58. cottages.textures_roof_wood = "default_tree.png";
  59. if( not( minetest.registered_nodes["default:tree"])) then
  60. -- realtest has diffrent barks; the spruce one seems to be the most fitting
  61. if( minetest.registered_nodes["trees:spruce_log" ]) then
  62. cottages.textures_roof_wood = "trees_spruce_trunk.png";
  63. -- this is also an indicator that we are dealing with realtest;
  64. cottages.craftitem_steel = "metals:pig_iron_ingot";
  65. -- stone exists, but is hard to obtain; chiseled stone is more suitable
  66. cottages.craftitem_stone = "default:stone_flat";
  67. -- there are far more diffrent wood tpyes
  68. cottages.craftitem_wood = "group:planks";
  69. cottages.craftitem_door = "doors:door_birch";
  70. cottages.craftitem_fence = "group:fence";
  71. cottages.craftitem_clay = "grounds:clay_lump";
  72. cottages.craftitem_iron = "group:plank"; -- iron lumps would be too specific
  73. cottages.craftitem_coal_lump = "minerals:charcoal";
  74. cottages.craftitem_junglewood = "trees:chestnut_planks";
  75. cottages.craftitem_slab_wood = "group:plank";
  76. cottages.texture_chest = { "spruce_chest_top.png", "spruce_chest_top.png", "spruce_chest_side.png",
  77. "spruce_chest_side.png", "spruce_chest_side.png", "spruce_chest_front.png"};
  78. -- wheat is called spelt in RealTest
  79. cottages.craftitem_seed_wheat = 'farming:seed_spelt';
  80. cottages.texture_wheat_seed = 'farming_spelt_seed.png';
  81. cottages.texture_stick = 'trees_maple_stick.png';
  82. else
  83. -- does not look so well in this case as it's no bark; but what else shall we do?
  84. cottages.textures_roof_wood = "cottages_minimal_wood.png";
  85. end
  86. end
  87. if( minetest.get_modpath("moreblocks")
  88. and minetest.registered_nodes[ "moreblocks:slab_wood" ]) then
  89. cottages.craftitem_slab_wood = "moreblocks:slab_wood";
  90. end
  91. if( not( minetest.registered_nodes["wool:white"])) then
  92. cottages.craftitem_wool = "cottages:wool";
  93. end