forked from minetest-mods/moreblocks
Lots of crafting tweaks, slight code cleanup.
This commit is contained in:
parent
5c1e6fcf0e
commit
cd91942e21
121
crafting.lua
121
crafting.lua
@ -2,41 +2,31 @@
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:stick 1",
|
output = "default:stick 1",
|
||||||
recipe = {
|
recipe = {{"default:dry_shrub"},}
|
||||||
{"default:dry_shrub"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:dirt_with_grass 1",
|
output = "default:dirt_with_grass 1",
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"default:junglegrass"},
|
recipe = {"default:junglegrass", "default:dirt"},
|
||||||
{"default:dirt"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:dirt_with_grass 1",
|
output = "default:dirt_with_grass 1",
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"default:mese"},
|
recipe = {"default:mese", "default:dirt"},
|
||||||
{"default:dirt"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:mossycobble 1",
|
output = "default:mossycobble 1",
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"default:junglegrass"},
|
recipe = {"default:junglegrass", "default:cobble"},
|
||||||
{"default:cobble"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "default:mossycobble 1",
|
output = "default:mossycobble 1",
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"default:mese"},
|
recipe = {"default:mese_crystal_fragment", "default:cobble"},
|
||||||
{"default:cobble"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -50,9 +40,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:wood_tile_flipped 1",
|
output = "moreblocks:wood_tile_flipped 1",
|
||||||
recipe = {
|
recipe = {{"moreblocks:wood_tile"},}
|
||||||
{"moreblocks:wood_tile"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -104,9 +92,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:junglestick 4",
|
output = "moreblocks:junglestick 4",
|
||||||
recipe = {
|
recipe = {{"default:junglewood"},}
|
||||||
{"default:junglewood"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -169,10 +155,8 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:empty_bookshelf 1",
|
output = "moreblocks:empty_bookshelf 1",
|
||||||
recipe = {
|
type = "shapeless",
|
||||||
{"moreblocks:sweeper"},
|
recipe = {"moreblocks:sweeper", "default:bookshelf"},
|
||||||
{"default:bookshelf"},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -244,6 +228,23 @@ minetest.register_craft({
|
|||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"default:steel_ingot", "default:chest"},
|
recipe = {"default:steel_ingot", "default:chest"},
|
||||||
})
|
})
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:chest_locked 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:copper_ingot", "default:chest"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:chest_locked 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:bronze_ingot", "default:chest"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:chest_locked 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:gold_ingot", "default:chest"},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:iron_glass 1",
|
output = "moreblocks:iron_glass 1",
|
||||||
@ -251,12 +252,25 @@ minetest.register_craft({
|
|||||||
recipe = {"default:steel_ingot", "default:glass"},
|
recipe = {"default:steel_ingot", "default:glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:glass 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:coal_lump", "moreblocks:iron_glass"},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:coal_glass 1",
|
output = "moreblocks:coal_glass 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"default:coal_lump", "default:glass"},
|
recipe = {"default:coal_lump", "default:glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:glass 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:steel_ingot", "moreblocks:coal_glass"},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:clean_glass 1",
|
output = "moreblocks:clean_glass 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
@ -272,8 +286,13 @@ minetest.register_craft({
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:trap_glow_glass 1",
|
output = "moreblocks:trap_glow_glass 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
walkable = false,
|
recipe = {"default:mese_crystal_fragment", "default:glass", "default:torch"},
|
||||||
recipe = {"default:mese_crystal", "default:glass", "default:torch"},
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_glow_glass 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "moreblocks:glow_glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -282,11 +301,23 @@ minetest.register_craft({
|
|||||||
recipe = {"default:torch", "default:torch", "default:glass"},
|
recipe = {"default:torch", "default:torch", "default:glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:super_glow_glass 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:torch", "moreblocks:glow_glass"},
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:trap_super_glow_glass 1",
|
output = "moreblocks:trap_super_glow_glass 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
walkable = false,
|
recipe = {"default:mese_crystal_fragment", "default:glass", "default:torch", "default:torch"},
|
||||||
recipe = {"default:mese_crystal", "default:glass", "default:torch", "default:torch"},
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_super_glow_glass 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "moreblocks:super_glow_glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -295,22 +326,34 @@ minetest.register_craft({
|
|||||||
recipe = {"default:coal_lump", "default:stone"},
|
recipe = {"default:coal_lump", "default:stone"},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "default:stone 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:steel_ingot", "moreblocks:coal_stone"},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:iron_stone 1",
|
output = "moreblocks:iron_stone 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"default:iron_lump", "default:stone"},
|
recipe = {"default:steel_ingot", "default:stone"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:trap_stone 12",
|
output = "default:stone 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"default:mese", "default:stone"},
|
recipe = {"default:coal_lump", "moreblocks:iron_stone"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:trap_glass 12",
|
output = "moreblocks:trap_stone 1",
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
recipe = {"default:mese", "default:glass"},
|
recipe = {"default:mese_crystal_fragment", "default:stone"},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moreblocks:trap_glass 1",
|
||||||
|
type = "shapeless",
|
||||||
|
recipe = {"default:mese_crystal_fragment", "default:glass"},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -336,7 +379,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moreblocks:rope 2",
|
output = "moreblocks:rope 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"default:junglegrass"},
|
{"default:junglegrass"},
|
||||||
{"default:junglegrass"},
|
{"default:junglegrass"},
|
||||||
|
14
nodes.lua
14
nodes.lua
@ -107,7 +107,7 @@ local nodes = {
|
|||||||
},
|
},
|
||||||
["iron_glass"] = {
|
["iron_glass"] = {
|
||||||
description = S("Iron Glass"),
|
description = S("Iron Glass"),
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike_framed",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
@ -115,7 +115,7 @@ local nodes = {
|
|||||||
},
|
},
|
||||||
["coal_glass"] = {
|
["coal_glass"] = {
|
||||||
description = S("Coal Glass"),
|
description = S("Coal Glass"),
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike_framed",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
@ -123,7 +123,7 @@ local nodes = {
|
|||||||
},
|
},
|
||||||
["clean_glass"] = {
|
["clean_glass"] = {
|
||||||
description = S("Clean Glass"),
|
description = S("Clean Glass"),
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike_framed",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3},
|
||||||
@ -182,7 +182,7 @@ local nodes = {
|
|||||||
},
|
},
|
||||||
["trap_glass"] = {
|
["trap_glass"] = {
|
||||||
description = S("Trap Glass"),
|
description = S("Trap Glass"),
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike_framed",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -194,8 +194,8 @@ local nodes = {
|
|||||||
description = S("Jungle Wood Fence"),
|
description = S("Jungle Wood Fence"),
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
tiles = {"moreblocks_jungle_wood.png"},
|
tiles = {"moreblocks_jungle_wood.png"},
|
||||||
inventory_image = "moreblocks_fence_jungle_wood.png",
|
inventory_image = "default_fence_overlay.png^moreblocks_jungle_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
|
||||||
wield_image = "moreblocks_fence_jungle_wood.png",
|
wield_image = "default_fence_overlay.png^moreblocks_jungle_wood.png^default_fence_overlay.png^[makealpha:255,126,126",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -213,7 +213,7 @@ local nodes = {
|
|||||||
furnace_burntime = 30,
|
furnace_burntime = 30,
|
||||||
},
|
},
|
||||||
["all_faces_jungle_tree"] = {
|
["all_faces_jungle_tree"] = {
|
||||||
description = S("All-faces Tree"),
|
description = S("All-faces Jungle Tree"),
|
||||||
tiles = {"default_jungletree_top.png"},
|
tiles = {"default_jungletree_top.png"},
|
||||||
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
|
||||||
sounds = sound_wood,
|
sounds = sound_wood,
|
||||||
|
Loading…
Reference in New Issue
Block a user