2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:dirt", {
|
|
|
|
description = "Dirt",
|
|
|
|
tiles = {"default_dirt.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-07-19 18:36:41 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{items = {'default:stone_item'},rarity = 5},
|
|
|
|
{items = {'default:dirt'}},
|
|
|
|
}
|
|
|
|
},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
2016-01-05 12:41:24 +01:00
|
|
|
|
|
|
|
minetest.register_node("default:dirt_with_snow", {
|
|
|
|
description = "Dirt with Snow",
|
|
|
|
tiles = {"default_snow.png", "default_dirt.png","default_dirt_with_snow.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:sand", {
|
|
|
|
description = "Sand",
|
|
|
|
tiles = {"default_sand.png"},
|
2016-02-05 11:35:41 +01:00
|
|
|
groups = {crumbly = 3, falling_node=1},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
2016-02-14 11:16:38 +01:00
|
|
|
minetest.register_node("default:wet_grass", {
|
|
|
|
description = "Wet Grass",
|
|
|
|
tiles = {"default_grass_wet.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-07-19 18:36:41 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{items = {'default:stone_item'},rarity = 5},
|
|
|
|
{items = {'default:wet_grass'}},
|
|
|
|
}
|
|
|
|
},
|
2016-02-14 11:16:38 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:grass_flowers", {
|
|
|
|
description = "Grass with flowers",
|
|
|
|
tiles = {"default_grass_flowers.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-02-14 11:16:38 +01:00
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:grass", {
|
|
|
|
description = "Grass",
|
|
|
|
tiles = {"default_grass.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-07-19 18:36:41 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{items = {'default:stone_item'},rarity = 5},
|
|
|
|
{items = {'default:grass'}},
|
|
|
|
}
|
|
|
|
},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
2016-01-05 12:41:24 +01:00
|
|
|
minetest.register_node("default:dry_grass", {
|
|
|
|
description = "dry Grass",
|
|
|
|
tiles = {"default_dry_grass.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:snow", {
|
|
|
|
description = "Snow",
|
|
|
|
tiles = {"default_snow.png"},
|
|
|
|
groups = {crumbly = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.dirt(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:ice", {
|
|
|
|
description = "Ice",
|
|
|
|
tiles = {"default_ice.png"},
|
|
|
|
groups = {crumbly = 3},
|
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:leaves_1", {
|
2016-01-09 13:00:09 +01:00
|
|
|
description = "Leaves",
|
2015-12-31 11:01:14 +01:00
|
|
|
paramtype = "light",
|
|
|
|
drawtype = "allfaces",
|
|
|
|
tiles = {"default_leaves_1.png"},
|
|
|
|
groups = {crumbly = 3, leaves = 1},
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
2016-02-20 12:13:32 +01:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{items = {"default:sapling 2"},rarity = 3},
|
|
|
|
{items = {'default:leaves_1'}},
|
|
|
|
}
|
|
|
|
},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
2016-01-09 13:00:09 +01:00
|
|
|
minetest.register_node("default:leaves_2", {
|
|
|
|
description = "Leaves",
|
|
|
|
paramtype = "light",
|
|
|
|
drawtype = "allfaces",
|
|
|
|
tiles = {"default_leaves_2.png"},
|
|
|
|
groups = {crumbly = 3, leaves = 1},
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:leaves_3", {
|
|
|
|
description = "Leaves",
|
|
|
|
paramtype = "light",
|
|
|
|
drawtype = "allfaces",
|
|
|
|
tiles = {"default_leaves_3.png"},
|
|
|
|
groups = {crumbly = 3, leaves = 1},
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:leaves_4", {
|
|
|
|
description = "Leaves",
|
|
|
|
paramtype = "light",
|
|
|
|
drawtype = "allfaces",
|
|
|
|
tiles = {"default_leaves_4.png"},
|
|
|
|
groups = {crumbly = 3, leaves = 1},
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:stones_on_floor", {
|
|
|
|
description = "Stones on Floor",
|
|
|
|
tiles = {"default_stones_on_floor.png"},
|
|
|
|
groups = {snappy = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
drop = "default:stone_item 2",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
2016-03-04 20:08:14 +01:00
|
|
|
minetest.register_node("default:rope", {
|
|
|
|
description = "Rope",
|
|
|
|
tiles = {"default_rope.png"},
|
|
|
|
groups = {snappy = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.1, -0.5, -0.1, 0.1, 0.5, 0.1},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
-- box
|
2015-12-31 11:01:14 +01:00
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
local box_form = "size[8,9]"
|
|
|
|
local box_form = box_form..default.gui_colors
|
|
|
|
local box_form = box_form..default.gui_bg
|
|
|
|
local box_form = box_form.."list[current_name;main;0,0.3;8,4;]"
|
|
|
|
local box_form = box_form..default.itemslot_bg(0,0.3,8,4)
|
|
|
|
local box_form = box_form.."list[current_player;main;0,4.85;8,1;]"
|
|
|
|
local box_form = box_form..default.itemslot_bg(0,4.85,8,1)
|
|
|
|
local box_form = box_form.."list[current_player;main;0,6.08;8,3;8]"
|
2016-04-08 16:41:19 +02:00
|
|
|
local box_form = box_form..default.itemslot_bg(0,6.08,8,3)
|
|
|
|
local box_form = box_form.."listring[current_name;main]"
|
|
|
|
local box_form = box_form.."listring[current_player;main]"
|
2015-12-31 11:01:14 +01:00
|
|
|
|
|
|
|
minetest.register_node("default:box", {
|
|
|
|
description = "Box",
|
2016-01-02 12:29:46 +01:00
|
|
|
tiles = {"default_wooden_planks.png", "default_wooden_planks.png", "default_box_side.png", "default_box_side.png", "default_box_side.png", "default_box_front.png"},
|
2015-12-31 11:01:14 +01:00
|
|
|
groups = {choppy = 3},
|
|
|
|
paramtype = "light",
|
2016-01-02 12:29:46 +01:00
|
|
|
paramtype2 = "facedir",
|
2015-12-31 11:01:14 +01:00
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2016-01-02 12:29:46 +01:00
|
|
|
{-0.4, -0.5, -0.4, 0.4, 0.2, 0.4},
|
2015-12-31 11:01:14 +01:00
|
|
|
},
|
|
|
|
},
|
2016-01-02 12:29:46 +01:00
|
|
|
on_construct = function(pos)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
meta:set_string("formspec", box_form)
|
|
|
|
meta:set_string("infotext", "Box")
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("main", 8*4)
|
|
|
|
end,
|
2016-04-08 16:41:19 +02:00
|
|
|
after_dig_node = default.drop_items,
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
2016-04-21 16:23:11 +02:00
|
|
|
default.treasure_chest_items = {"money:coin", "money:silver_coin", "default:ruby"}
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:treasure_chest", {
|
|
|
|
description = "Treasure Chest",
|
|
|
|
tiles = {"default_treasure_chest.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-01-02 12:29:46 +01:00
|
|
|
drop = "default:box",
|
2015-12-31 11:01:14 +01:00
|
|
|
on_construct = function(pos)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("main", 8*4)
|
2016-03-26 13:58:54 +01:00
|
|
|
local items = default.treasure_chest_items
|
|
|
|
local item = items[math.random(#items)]
|
2016-06-05 13:13:09 +02:00
|
|
|
inv:add_item("main", {name = item, count = math.random(1,3)})
|
2016-03-26 13:58:54 +01:00
|
|
|
local item = items[math.random(#items)]
|
2016-06-05 13:13:09 +02:00
|
|
|
inv:add_item("main", {name = item, count = math.random(1,3)})
|
2015-12-31 11:01:14 +01:00
|
|
|
end,
|
|
|
|
after_dig_node = function(pos, oldnode, oldmetadata, digger)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
meta:from_table(oldmetadata)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
for i = 1, inv:get_size("main") do
|
|
|
|
local stack = inv:get_stack("main", i)
|
|
|
|
if not stack:is_empty() then
|
|
|
|
local p = { x = pos.x + math.random(0, 5)/5 - 0.5,
|
|
|
|
y = pos.y,
|
|
|
|
z = pos.z + math.random(0, 5)/5 - 0.5
|
|
|
|
}
|
|
|
|
minetest.add_item(p, stack)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2016-01-01 13:43:26 +01:00
|
|
|
minetest.register_node("default:lamp", {
|
|
|
|
description = "Lamp",
|
|
|
|
tiles = {"default_lamp.png"},
|
|
|
|
light_source = 14,
|
2015-12-31 11:01:14 +01:00
|
|
|
groups = {crumbly = 3},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("default:ladder", {
|
|
|
|
description = "Ladder",
|
|
|
|
drawtype = "signlike",
|
|
|
|
tiles = {"default_ladder.png"},
|
|
|
|
inventory_image = "default_ladder.png",
|
|
|
|
wield_image = "default_ladder.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
is_ground_content = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
},
|
|
|
|
groups = {crumbly = 3},
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
})
|
|
|
|
-- flowing and sources
|
|
|
|
|
|
|
|
minetest.register_node("default:water_source", {
|
|
|
|
description = "Water Source",
|
|
|
|
drawtype = "liquid",
|
|
|
|
tiles = {"default_water.png"},
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
paramtype = "light",
|
|
|
|
alpha = 160,
|
|
|
|
drowning = 1,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:water_flowing",
|
|
|
|
liquid_alternative_source = "default:water_source",
|
|
|
|
liquid_viscosity = 3,
|
|
|
|
groups = {liquid=3, water = 1},
|
2016-01-06 12:53:30 +01:00
|
|
|
post_effect_color = {a=50, r=0, g=64, b=200},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:water_flowing", {
|
|
|
|
description = "Water Flowing",
|
|
|
|
tiles = {"default_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
name = "default_water.png",
|
|
|
|
backface_culling = false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default_water.png",
|
|
|
|
backface_culling = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
walkable = false,
|
|
|
|
drawtype = "flowingliquid",
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
alpha = 160,
|
|
|
|
drowning = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:water_flowing",
|
|
|
|
liquid_alternative_source = "default:water_source",
|
|
|
|
liquid_viscosity = 3,
|
|
|
|
groups = {liquid=3, not_in_creative_inventory=1, water = 1},
|
|
|
|
post_effect_color = {a=100, r=0, g=64, b=200},
|
|
|
|
})
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
-- wood
|
|
|
|
|
|
|
|
minetest.register_node("default:wood", {
|
|
|
|
description = "Wood",
|
|
|
|
tiles = {"default_wood.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:wooden_planks", {
|
|
|
|
description = "Wooden Planks",
|
|
|
|
tiles = {"default_wooden_planks.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
2016-02-21 10:44:23 +01:00
|
|
|
minetest.register_node("default:wooden_planks_2", {
|
|
|
|
description = "Wooden Planks",
|
|
|
|
tiles = {"default_wooden_planks_2.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-02-21 10:44:23 +01:00
|
|
|
})
|
|
|
|
|
2016-02-28 17:27:49 +01:00
|
|
|
minetest.register_node("default:jungle_wood", {
|
|
|
|
description = "Jungle Wood",
|
|
|
|
tiles = {"default_jungle_wood.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-02-28 17:27:49 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:wooden_planks_jungle", {
|
|
|
|
description = "Wooden Planks (Jungle wood)",
|
|
|
|
tiles = {"default_wooden_planks_jungle.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-02-28 17:27:49 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:wooden_planks_2_jungle", {
|
|
|
|
description = "Wooden Planks (Jungle wood)",
|
|
|
|
tiles = {"default_wooden_planks_2_jungle.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-02-28 17:27:49 +01:00
|
|
|
})
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
-- log
|
|
|
|
|
|
|
|
minetest.register_node("default:log_1", {
|
|
|
|
description = "Log (thick)",
|
2016-02-04 12:00:00 +01:00
|
|
|
tiles = {"default_log_top.png","default_log_top.png","default_log.png"},
|
2016-01-02 12:29:46 +01:00
|
|
|
groups = {choppy = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.4, -0.5, -0.4, 0.4, 0.5, 0.4},
|
|
|
|
},
|
|
|
|
},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:log_2", {
|
|
|
|
description = "Log",
|
2016-02-04 12:00:00 +01:00
|
|
|
tiles = {"default_log_top.png","default_log_top.png","default_log.png"},
|
2016-01-02 12:29:46 +01:00
|
|
|
groups = {choppy = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
|
|
|
},
|
|
|
|
},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:log_3", {
|
|
|
|
description = "Log (thin)",
|
2016-02-04 12:00:00 +01:00
|
|
|
tiles = {"default_log_top.png","default_log_top.png","default_log.png"},
|
2016-01-02 12:29:46 +01:00
|
|
|
groups = {choppy = 3},
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.2, -0.5, -0.2, 0.2, 0.5, 0.2},
|
|
|
|
},
|
|
|
|
},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
2016-02-25 17:12:42 +01:00
|
|
|
minetest.register_node("default:jungle_tree", {
|
|
|
|
description = "Jungle Tree",
|
|
|
|
tiles = {"default_jungle_tree_top.png", "default_jungle_tree_top.png", "default_jungle_tree.png"},
|
|
|
|
groups = {choppy = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.wood(),
|
2016-02-25 17:12:42 +01:00
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
-- plants
|
|
|
|
|
2016-02-14 12:44:22 +01:00
|
|
|
minetest.register_node("default:sapling", {
|
|
|
|
description = "Sapling",
|
|
|
|
tiles = {"default_sapling.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
|
|
|
inventory_image = "default_sapling.png",
|
|
|
|
buildable_to = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, sapling = 1},
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2016-02-14 12:44:22 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = {"default:sapling"},
|
|
|
|
neighbors = {"default:grass", "default:dirt"},
|
|
|
|
interval = 1.0,
|
|
|
|
chance = 1,
|
|
|
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
|
|
minetest.set_node(pos, {name = "air"})
|
|
|
|
if math.random(2) == 1 then
|
|
|
|
local path = minetest.get_modpath("default") .. "/schematics/tree2.mts"
|
|
|
|
minetest.place_schematic({x = pos.x - 1, y = pos.y - 0, z = pos.z - 1}, path, 0, nil, false)
|
|
|
|
else
|
|
|
|
local path = minetest.get_modpath("default") .. "/schematics/tree1.mts"
|
|
|
|
minetest.place_schematic({x = pos.x - 2, y = pos.y - 0, z = pos.z - 2}, path, 0, nil, false)
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:plant_grass", {
|
|
|
|
description = "Grass (Plant)",
|
|
|
|
tiles = {"default_plant_grass.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
2016-01-03 18:43:02 +01:00
|
|
|
inventory_image = "default_plant_grass.png",
|
2015-12-31 12:29:21 +01:00
|
|
|
buildable_to = true,
|
2015-12-31 11:01:14 +01:00
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
2016-01-25 18:01:46 +01:00
|
|
|
minetest.register_node("default:plant_grass_2", {
|
|
|
|
description = "Grass (Plant)",
|
|
|
|
tiles = {"default_plant_grass_2.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
|
|
|
inventory_image = "default_plant_grass_2.png",
|
|
|
|
buildable_to = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
|
|
|
drop = "default:plant_grass",
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2016-01-25 18:01:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:plant_grass_3", {
|
|
|
|
description = "Grass (Plant)",
|
|
|
|
tiles = {"default_plant_grass_3.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
|
|
|
inventory_image = "default_plant_grass_3.png",
|
|
|
|
buildable_to = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
|
|
|
drop = "default:plant_grass",
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2016-01-25 18:01:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:plant_grass_4", {
|
|
|
|
description = "Grass (Plant)",
|
|
|
|
tiles = {"default_plant_grass_4.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
|
|
|
inventory_image = "default_plant_grass_4.png",
|
|
|
|
buildable_to = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
|
|
|
drop = "default:plant_grass",
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2016-01-25 18:01:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:plant_grass_5", {
|
|
|
|
description = "Grass (Plant)",
|
|
|
|
tiles = {"default_plant_grass_5.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
|
|
|
inventory_image = "default_plant_grass_5.png",
|
|
|
|
buildable_to = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
|
|
|
drop = "default:plant_grass",
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2016-01-25 18:01:46 +01:00
|
|
|
})
|
|
|
|
|
2015-12-31 11:01:14 +01:00
|
|
|
minetest.register_node("default:flower_1", {
|
|
|
|
description = "Flower",
|
|
|
|
tiles = {"default_flower_1.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
2016-01-03 18:43:02 +01:00
|
|
|
inventory_image = "default_flower_1.png",
|
2015-12-31 12:29:21 +01:00
|
|
|
buildable_to = true,
|
2015-12-31 11:01:14 +01:00
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:flower_2", {
|
|
|
|
description = "Flower (glowing)",
|
|
|
|
tiles = {"default_flower_2.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
2016-01-03 18:43:02 +01:00
|
|
|
inventory_image = "default_flower_2.png",
|
2015-12-31 11:01:14 +01:00
|
|
|
light_source = 10,
|
2015-12-31 12:29:21 +01:00
|
|
|
buildable_to = true,
|
2015-12-31 11:01:14 +01:00
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2015-12-31 11:01:14 +01:00
|
|
|
})
|
2016-01-01 13:43:26 +01:00
|
|
|
|
2016-02-04 12:00:00 +01:00
|
|
|
minetest.register_node("default:mushroom", {
|
|
|
|
description = "Mushroom",
|
|
|
|
tiles = {"default_mushroom.png"},
|
|
|
|
drawtype = "plantlike",
|
|
|
|
paramtype = "light",
|
|
|
|
inventory_image = "default_mushroom_inv.png",
|
|
|
|
buildable_to = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
2016-03-12 10:05:07 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
|
|
|
|
},
|
2016-02-04 12:00:00 +01:00
|
|
|
})
|
|
|
|
|
2016-06-12 12:39:03 +02:00
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = {"default:mushroom"},
|
|
|
|
neighbors = {"default:dirt"},
|
|
|
|
interval = 20,
|
|
|
|
chance = 2,
|
|
|
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
|
|
|
local p = {x = pos.x + math.random(-1,1), y = pos.y, z = pos.z + math.random(-1,1)}
|
|
|
|
local under = vector.new(p.x, p.y-1, p.z)
|
|
|
|
if minetest.get_node(p).name == "air" and minetest.get_node(under).name == "default:dirt" then
|
|
|
|
minetest.set_node(p, {name = "default:mushroom"})
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2016-02-12 13:36:15 +01:00
|
|
|
minetest.register_node("default:liana", {
|
|
|
|
description = "Liana",
|
|
|
|
drawtype = "signlike",
|
|
|
|
tiles = {"default_liana.png"},
|
|
|
|
inventory_image = "default_liana.png",
|
|
|
|
wield_image = "default_liana.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
is_ground_content = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
},
|
|
|
|
groups = {crumbly = 3, plant = 1},
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
})
|
|
|
|
|
2016-02-04 12:00:00 +01:00
|
|
|
-- straw
|
|
|
|
|
|
|
|
minetest.register_node("default:straw", {
|
|
|
|
description = "Straw",
|
|
|
|
tiles = {"default_straw_top.png", "default_straw_top.png", "default_straw_side.png"},
|
|
|
|
groups = {crumbly = 3},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
2016-01-01 13:43:26 +01:00
|
|
|
-- frames
|
|
|
|
|
|
|
|
minetest.register_node("default:frame", {
|
|
|
|
description = "Frame",
|
2016-02-20 12:13:32 +01:00
|
|
|
tiles = {"default_frame.png", "default_frame_detail.png"},
|
|
|
|
drawtype = "glasslike_framed_optional",
|
2016-01-01 13:43:26 +01:00
|
|
|
paramtype = "light",
|
|
|
|
groups = {choppy = 3},
|
|
|
|
})
|
|
|
|
|
|
|
|
-- glass
|
|
|
|
|
|
|
|
minetest.register_node("default:glass", {
|
|
|
|
description = "Glass",
|
2016-02-09 11:21:32 +01:00
|
|
|
drawtype = "glasslike_framed_optional",
|
|
|
|
tiles = {"default_glass.png", "default_glass_detail.png"},
|
|
|
|
inventory_image = minetest.inventorycube("default_glass.png"),
|
2016-01-01 13:43:26 +01:00
|
|
|
paramtype = "light",
|
|
|
|
groups = {crumbly = 3},
|
|
|
|
})
|
|
|
|
|
2016-01-05 12:41:24 +01:00
|
|
|
-- wool
|
|
|
|
|
|
|
|
default.register_wool = function(color)
|
|
|
|
minetest.register_node("default:wool_"..color, {
|
|
|
|
description = color.." Wool",
|
2016-06-19 11:33:49 +02:00
|
|
|
tiles = {"default_wool.png^[colorize:"..color..":150"},
|
2016-01-05 12:41:24 +01:00
|
|
|
groups = {crumbly=3},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
default.register_wool("red")
|
|
|
|
default.register_wool("green")
|
|
|
|
default.register_wool("yellow")
|
|
|
|
default.register_wool("white")
|
|
|
|
default.register_wool("black")
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
-- stone
|
|
|
|
|
|
|
|
minetest.register_node("default:stone", {
|
|
|
|
description = "Stone",
|
|
|
|
tiles = {"default_stone.png"},
|
2016-01-06 12:53:30 +01:00
|
|
|
groups = {cracky = 3, stone= 1},
|
2016-01-23 12:07:58 +01:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{items = {'default:flint'},rarity = 5},
|
|
|
|
{items = {"default:stone_item 5"}},
|
|
|
|
}
|
2016-04-23 21:22:42 +02:00
|
|
|
},
|
|
|
|
sounds = default.sounds.stone(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
2016-01-05 12:41:24 +01:00
|
|
|
minetest.register_node("default:desert_stone", {
|
|
|
|
description = "Desert Stone",
|
|
|
|
tiles = {"default_stone.png^[colorize:orange:50"},
|
|
|
|
groups = {cracky = 3},
|
|
|
|
drop = "default:stone_item 5",
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
2016-02-05 13:28:28 +01:00
|
|
|
|
2016-03-01 19:17:16 +01:00
|
|
|
minetest.register_node("default:andesite", {
|
|
|
|
description = "Andesite",
|
|
|
|
tiles = {"default_andesite.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-03-01 19:17:16 +01:00
|
|
|
})
|
|
|
|
|
2016-02-05 13:28:28 +01:00
|
|
|
minetest.register_node("default:cobble", {
|
|
|
|
description = "Cobble",
|
|
|
|
tiles = {"default_cobble.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-05 13:28:28 +01:00
|
|
|
})
|
2016-01-05 12:41:24 +01:00
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
minetest.register_node("default:stone_tile", {
|
|
|
|
description = "Stone Tile",
|
|
|
|
tiles = {"default_stone_tile.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:small_stone_tiles", {
|
|
|
|
description = "Small Stone Tiles",
|
|
|
|
tiles = {"default_small_stone_tile.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stonebrick", {
|
|
|
|
description = "Stonebrick",
|
|
|
|
tiles = {"default_stonebrick.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
2016-02-12 13:12:19 +01:00
|
|
|
minetest.register_node("default:mossy_stonebrick", {
|
|
|
|
description = "Mossy Stonebrick",
|
|
|
|
tiles = {"default_mossy_stonebrick.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-12 13:12:19 +01:00
|
|
|
})
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
minetest.register_node("default:wet_stone", {
|
|
|
|
description = "Wet Stone",
|
|
|
|
tiles = {"default_wet_stone.png"},
|
|
|
|
groups = {cracky = 3},
|
|
|
|
drop = {"default:stone_item 5"},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
2016-02-18 18:15:18 +01:00
|
|
|
minetest.register_node("default:sandstone", {
|
|
|
|
description = "Sandstone",
|
|
|
|
tiles = {"default_sandstone.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-18 18:15:18 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:compressed_sandstone", {
|
|
|
|
description = "Compressed Sandstone",
|
|
|
|
tiles = {"default_compressed_sandstone.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-18 18:15:18 +01:00
|
|
|
})
|
|
|
|
|
2016-02-26 15:35:01 +01:00
|
|
|
minetest.register_node("default:sandstone_brick", {
|
|
|
|
description = "Sandstone Brick",
|
|
|
|
tiles = {"default_sandstone_brick.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-26 15:35:01 +01:00
|
|
|
})
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
minetest.register_node("default:gravel", {
|
|
|
|
description = "Gravel",
|
|
|
|
tiles = {"default_gravel.png"},
|
|
|
|
groups = {crumbly = 2, falling_node=1},
|
2016-01-23 11:36:39 +01:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
2016-01-23 12:07:58 +01:00
|
|
|
{items = {'default:flint'},rarity = 5},
|
|
|
|
{items = {'default:gravel'}},
|
2016-01-23 11:36:39 +01:00
|
|
|
}
|
|
|
|
}
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
|
|
|
|
2016-02-04 12:00:00 +01:00
|
|
|
--brick
|
|
|
|
|
|
|
|
minetest.register_node("default:brick", {
|
|
|
|
description = "Brick",
|
|
|
|
tiles = {"default_brick.png"},
|
|
|
|
groups = {cracky = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-04 12:00:00 +01:00
|
|
|
})
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
-- ores
|
|
|
|
|
2016-01-05 12:41:24 +01:00
|
|
|
minetest.register_node("default:stone_with_coal", {
|
|
|
|
description = "Stone with Coal",
|
|
|
|
tiles = {"default_stone_with_coal.png"},
|
|
|
|
groups = {cracky = 2},
|
2016-07-12 16:56:54 +02:00
|
|
|
drop = "default:coal_lump",
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
2016-01-02 12:29:46 +01:00
|
|
|
minetest.register_node("default:stone_with_iron", {
|
|
|
|
description = "Stone with Iron",
|
|
|
|
tiles = {"default_stone_with_iron.png"},
|
|
|
|
groups = {cracky = 2},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-24 12:42:37 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stone_with_copper", {
|
|
|
|
description = "Stone with Copper",
|
|
|
|
tiles = {"default_stone_with_copper.png"},
|
2016-06-05 13:13:09 +02:00
|
|
|
groups = {cracky = 1},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-24 12:42:37 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stone_with_zinc", {
|
|
|
|
description = "Stone with Zinc",
|
|
|
|
tiles = {"default_stone_with_zinc.png"},
|
2016-06-05 13:13:09 +02:00
|
|
|
groups = {cracky = 1},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-24 12:42:37 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stone_with_silver", {
|
|
|
|
description = "Stone with Silver",
|
|
|
|
tiles = {"default_stone_with_silver.png"},
|
2016-06-05 13:13:09 +02:00
|
|
|
groups = {hard = 3},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stone_with_gold", {
|
|
|
|
description = "Stone with Gold",
|
|
|
|
tiles = {"default_stone_with_gold.png"},
|
|
|
|
groups = {cracky = 1},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stone_with_diamond", {
|
|
|
|
description = "Stone with Diamond",
|
|
|
|
tiles = {"default_stone_with_diamond.png"},
|
2016-06-05 13:13:09 +02:00
|
|
|
groups = {hard = 2},
|
2016-01-05 12:41:24 +01:00
|
|
|
drop = "default:diamond",
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-05 12:41:24 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:stone_with_ruby", {
|
|
|
|
description = "Stone with Ruby",
|
|
|
|
tiles = {"default_stone_with_ruby.png"},
|
2016-06-05 13:13:09 +02:00
|
|
|
groups = {hard = 1},
|
2016-01-05 12:41:24 +01:00
|
|
|
drop = "default:ruby",
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-01-02 12:29:46 +01:00
|
|
|
})
|
2016-01-06 12:53:30 +01:00
|
|
|
|
2016-03-20 10:22:11 +01:00
|
|
|
-- coalblock
|
|
|
|
|
|
|
|
minetest.register_node("default:coalblock", {
|
|
|
|
description = "Coalblock",
|
|
|
|
tiles = {"default_coalblock.png"},
|
|
|
|
groups = {cracky = 2},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-03-20 10:22:11 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("default:coalblock_glowing", {
|
2016-06-19 11:33:49 +02:00
|
|
|
description = "Glowing Coalblock",
|
2016-03-20 10:22:11 +01:00
|
|
|
tiles = {"default_coalblock_glowing.png"},
|
|
|
|
light_source = 7,
|
|
|
|
groups = {cracky = 2},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-03-20 10:22:11 +01:00
|
|
|
})
|
|
|
|
|
2016-02-29 18:10:31 +01:00
|
|
|
--quartz
|
|
|
|
|
|
|
|
minetest.register_node("default:quartz", {
|
|
|
|
description = "Quartz",
|
|
|
|
tiles = {"default_quartz.png"},
|
|
|
|
groups = {cracky = 2},
|
2016-04-23 21:22:42 +02:00
|
|
|
sounds = default.sounds.stone(),
|
2016-02-29 18:10:31 +01:00
|
|
|
})
|
|
|
|
|
2016-01-06 12:53:30 +01:00
|
|
|
-- rail
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("default:rail", {
|
|
|
|
description = "Rail",
|
|
|
|
drawtype = "raillike",
|
|
|
|
tiles = {"default_rail.png", "default_rail_curve.png",
|
|
|
|
"default_rail_t.png", "default_rail_cross.png"},
|
|
|
|
inventory_image = "default_rail.png",
|
|
|
|
wield_image = "default_rail.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
groups = {choppy = 1, attached_node = 1},
|
|
|
|
})
|
2016-07-09 10:56:06 +02:00
|
|
|
|
|
|
|
-- fences
|
|
|
|
|
|
|
|
default.register_fence("default:fence_wood", {
|
|
|
|
material = "default:wood",
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("default:fence_cobble", {
|
|
|
|
material = "default:cobble",
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("default:fence_jungle_wood", {
|
|
|
|
material = "default:jungle_wood",
|
|
|
|
})
|
|
|
|
|
|
|
|
default.register_fence("default:fence_quartz", {
|
|
|
|
material = "default:quartz",
|
|
|
|
})
|
2016-07-12 16:56:54 +02:00
|
|
|
|
|
|
|
-- alias
|
|
|
|
minetest.register_alias("default:dirt_with_grass", "default:grass")
|
|
|
|
minetest.register_alias("default:dirt_with_dry_grass", "default:dry_grass")
|