Add thin windows glass

master
SmallJoker 2014-11-16 15:58:38 +01:00
parent 8227c7ea66
commit 194fd0f127
4 changed files with 29 additions and 5 deletions

View File

@ -356,6 +356,12 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "default:window_glass 15",
recipe = {
{"default:glass", "default:glass", "default:glass"}
}
})
--
-- Crafting (tool repair)

View File

@ -404,7 +404,7 @@ minetest.register_biome({
name = "forest",
node_top = "default:dirt_with_grass", depth_top = 1,
node_filler = "default:dirt", depth_filler = 3,
height_min = 2, height_max =40,
height_min = 2, height_max = 40,
heat_point = 50, humidity_point = 80,
})
@ -427,7 +427,7 @@ minetest.register_biome({
name = "tropical_beach",
node_top = "default:sand", depth_top = 5,
height_min = -500, height_max = 3,
heat_point = 80.0, humidity_point = 50,
heat_point = 80, humidity_point = 50,
})
minetest.register_biome({
@ -450,14 +450,14 @@ minetest.register_biome({
name = "mountain",
node_top = "default:dirt_with_snow", depth_top = 1,
node_filler = "default:dirt", depth_filler = 2,
height_min = 41, height_max = 50,
height_min = 41, height_max = 60,
})
minetest.register_biome({
name = "alpine",
node_top = "default:snowblock", depth_top = 1,
node_filler = "default:dirt_with_snow", depth_filler = 1,
height_min = 51, height_max = 300,
height_min = 61, height_max = 300,
})
minetest.register_biome({

View File

@ -307,6 +307,24 @@ minetest.register_node("default:glass", {
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("default:window_glass", {
description = "Window glass",
tiles = {"default_glass.png"},
paramtype2 = "facedir",
drawtype = "nodebox",
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky=3, oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.05, 0.5, 0.5, 0.05}, -- NodeBox1
}
}
})
minetest.register_node("default:fence_wood", {
description = "Wooden fence",
drawtype = "fencelike",

View File

@ -3,6 +3,6 @@ if minetest.setting_getbool("give_initial_stuff") then
local inv = player:get_inventory()
inv:add_item("main", "default:pick_stone")
inv:add_item("main", "default:torch 8")
inv:add_item("main", "default:cobble 20")
inv:add_item("main", "default:wood 10")
end)
end