123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- ----------------------------------------------------------
- -- Wattle Construction
- -- woven stick based construction
- -------------------------------------------------
- -----------------------------------------------------------
- --WATTLE AND DAUB NODES AND CRAFTS
- --adds wattle
- minetest.register_node('earthbuild:wattle', {
- description = 'Wattle',
- drawtype = "nodebox",
- node_box = {
- type = "connected",
- fixed = {{-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}},
- -- connect_bottom =
- connect_front = {{-1/8, -1/2, -1/2, 1/8, 1/2, -1/8}},
- connect_left = {{-1/2, -1/2, -1/8, -1/8, 1/2, 1/8}},
- connect_back = {{-1/8, -1/2, 1/8, 1/8, 1/2, 1/2}},
- connect_right = {{ 1/8, -1/2, -1/8, 1/2, 1/2, 1/8}},
- },
- connects_to = { "group:crumbly", "group:wood", "group:tree", "group:stone", 'earthbuild:wattle', 'earthbuild:wattle_loose',},
- paramtype = "light",
- tiles = {"earthbuild_wattle_top.png", "earthbuild_wattle_top.png","earthbuild_wattle.png", "earthbuild_wattle.png", "earthbuild_wattle.png", "earthbuild_wattle.png" },
- inventory_image = "earthbuild_wattle.png",
- wield_image = "earthbuild_wattle.png",
- groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1,},
- sounds = default.node_sound_wood_defaults(),
- })
- -- adds wattle recipe
- --(1 wattle per stick, makes it 4 times 'better' than wood)
- minetest.register_craft({
- output = 'earthbuild:wattle 4',
- recipe = {
- {'', '', ''},
- {'', 'group:stick', ''},
- {'group:stick', 'group:stick', 'group:stick'},
- }
- })
- --recover wattle from wattle and daub
- minetest.register_craft({
- output = 'earthbuild:wattle',
- recipe = {{'earthbuild:wattle_and_daub'}}
- })
- minetest.register_craft({
- output = 'earthbuild:wattle',
- recipe = {{'earthbuild:whitewashed_wattle_and_daub'}}
- })
- --recycle wattle
- minetest.register_craft({
- output = 'default:stick',
- recipe = {
- {'earthbuild:wattle'}
- }
- })
- ----------------------------
- --adds loose wattle (a crude window... or for resource saving)
- minetest.register_node('earthbuild:wattle_loose', {
- description = 'Loose Wattle',
- drawtype = "nodebox",
- node_box = {
- type = "connected",
- fixed = {{-1/8, -1/2, -1/8, 1/8, 1/2, 1/8}},
- -- connect_bottom =
- connect_front = {{-1/8, -1/2, -1/2, 1/8, 1/2, -1/8}},
- connect_left = {{-1/2, -1/2, -1/8, -1/8, 1/2, 1/8}},
- connect_back = {{-1/8, -1/2, 1/8, 1/8, 1/2, 1/2}},
- connect_right = {{ 1/8, -1/2, -1/8, 1/2, 1/2, 1/8}},
- },
- connects_to = { "group:crumbly", "group:wood", "group:tree", "group:stone", 'earthbuild:wattle', 'earthbuild:wattle_loose', 'earthbuild:thatch'},
- paramtype = "light",
- tiles = {"earthbuild_wattle_top.png", "earthbuild_wattle_top.png","earthbuild_wattle_loose.png", "earthbuild_wattle_loose.png", "earthbuild_wattle_loose.png", "earthbuild_wattle_loose.png" },
- inventory_image = "earthbuild_wattle_loose.png",
- wield_image = "earthbuild_wattle_loose.png",
- groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 1,},
- sounds = default.node_sound_wood_defaults(),
- })
- --split
- minetest.register_craft({
- output = 'earthbuild:wattle_loose 4',
- recipe = {{ 'earthbuild:wattle','earthbuild:wattle'}}
- })
- --combine
- minetest.register_craft({
- output = 'earthbuild:wattle',
- recipe = {{'earthbuild:wattle_loose', 'earthbuild:wattle_loose'}}
- })
- --recycle loose wattle?
- --would only be half a stick... force to recombine into wattle
- ----------------------------
- -- adds wattle_and_daub
- minetest.register_node('earthbuild:wattle_and_daub', {
- description = 'Wattle and Daub',
- drawtype = "nodebox",
- node_box = {
- type = "connected",
- fixed = {{-1/4, -1/2, -1/4, 1/4, 1/2, 1/4}},
- -- connect_bottom =
- connect_front = {{-1/4, -1/2, -1/2, 1/4, 1/2, -1/4}},
- connect_left = {{-1/2, -1/2, -1/4, -1/4, 1/2, 1/4}},
- connect_back = {{-1/4, -1/2, 1/4, 1/4, 1/2, 1/2}},
- connect_right = {{ 1/4, -1/2, -1/4, 1/2, 1/2, 1/4}},
- },
- connects_to = { "group:crumbly", "group:wood", "group:tree", "group:stone",'earthbuild:wattle', 'earthbuild:wattle_loose',},
- paramtype = "light",
- tiles = {"earthbuild_wattle_and_daub.png"},
- inventory_image = "earthbuild_wattle_and_daub.png",
- wield_image = "earthbuild_wattle_and_daub.png",
- groups = {crumbly = 2, cracky = 3, choppy = 2},
- sounds = default.node_sound_dirt_defaults(),
- })
- -- adds wattle_and_daub recipes
- minetest.register_craft({
- output = 'earthbuild:wattle_and_daub 6',
- recipe = {
- {'earthbuild:wattle', 'earthbuild:wattle', 'earthbuild:wattle'},
- {'earthbuild:wattle', 'earthbuild:wattle', 'earthbuild:wattle'},
- {'', 'earthbuild:cob', ''},
- }
- })
- ----------------------------------------------
- --Burnables
- minetest.register_craft({
- type = "fuel",
- recipe = "earthbuild:wattle",
- burntime = 3,
- })
- minetest.register_craft({
- type = "fuel",
- recipe = "earthbuild:wattle_loose",
- burntime = 1.5,
- })
|