787 lines
19 KiB
Lua
Raw Normal View History

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(),
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(),
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"},
2017-01-13 11:01:27 +01:00
groups = {crumbly = 3, grass = 1},
2016-04-23 21:22:42 +02:00
sounds = default.sounds.dirt(),
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 = {"farming:apple"},rarity = 5},
2016-02-20 12:13:32 +01:00
{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,
})
2016-11-30 19:41:31 +01:00
minetest.register_node("default:leaves_5", {
description = "Leaves",
paramtype = "light",
drawtype = "allfaces",
tiles = {"default_leaves_5.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 = "connected",
fixed = {{-2/16, -2/16, -2/16, 2/16, 2/16, 2/16},},
2017-02-14 11:27:43 +01:00
connect_front = {{-2/16, -2/16, -0.5, 2/16, 2/16, 2/16}},
connect_back = {{-2/16, -2/16, -2/16, 2/16, 2/16, 0.5}},
connect_left = {{-0.5, -2/16, -2/16, 2/16, 2/16, 2/16}},
connect_right = {{-2/16, -2/16, -2/16, 0.5, 2/16, 2/16}},
connect_top = {{-2/16, -2/16, -2/16, 2/16, 0.5, 2/16}},
connect_bottom = {{-2/16, -0.5, -2/16, 2/16, 2/16, 2/16}},
2016-03-04 20:08:14 +01:00
},
connects_to = {"default:rope", "group:cracky", "group:choppy"},
2016-03-04 20:08:14 +01:00
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
2017-02-14 11:27:43 +01:00
local box_form = box_form.."list[current_name;main;0,0.3;8,4;]"
2016-01-02 12:29:46 +01:00
local box_form = box_form..default.itemslot_bg(0,0.3,8,4)
2017-02-14 11:27:43 +01:00
local box_form = box_form.."list[current_player;main;0,4.85;8,1;]"
2016-01-02 12:29:46 +01:00
local box_form = box_form..default.itemslot_bg(0,4.85,8,1)
2017-02-14 11:27:43 +01:00
local box_form = box_form.."list[current_player;main;0,6.08;8,3;8]"
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,
after_dig_node = default.drop_items,
2015-12-31 11:01:14 +01:00
})
2016-09-06 11:50:03 +02:00
default.treasure_chest_items = {"money:coin", "money:silver_coin"}
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
after_dig_node = function(pos, oldnode, oldmetadata, digger)
2016-09-06 11:50:03 +02:00
local items = default.treasure_chest_items
2016-11-23 19:06:38 +01:00
minetest.add_item(pos, {name = items[math.random(#items)], count = math.random(1, 3)})
minetest.add_item(pos, {name = items[math.random(#items)], count = math.random(1, 3)})
2015-12-31 11:01:14 +01:00
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},
})
-- plants
minetest.register_node("default:plant_grass", {
description = "Grass (Plant)",
tiles = {"default_plant_grass.png"},
drawtype = "plantlike",
paramtype = "light",
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,
2017-01-13 11:01:27 +01:00
groups = {crumbly = 3, plant = 1, grass = 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,
2017-01-13 11:01:27 +01:00
groups = {crumbly = 3, plant = 1, grass = 1},
2016-01-25 18:01:46 +01:00
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,
2017-01-13 11:01:27 +01:00
groups = {crumbly = 3, plant = 1, grass = 1},
2016-01-25 18:01:46 +01:00
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,
2017-01-13 11:01:27 +01:00
groups = {crumbly = 3, plant = 1, grass = 1},
2016-01-25 18:01:46 +01:00
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",
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", {
2017-01-13 11:01:27 +01:00
description = "Yellow Flower",
2015-12-31 11:01:14 +01:00
tiles = {"default_flower_2.png"},
drawtype = "plantlike",
paramtype = "light",
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
2017-01-13 11:01:27 +01:00
minetest.register_node("default:flower_3", {
description = "Red Flower",
tiles = {"default_flower_3.png"},
drawtype = "plantlike",
paramtype = "light",
inventory_image = "default_flower_3.png",
buildable_to = true,
walkable = false,
groups = {crumbly = 3, plant = 1},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.4, 0.5},
},
})
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},
},
})
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,
})
-- 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"},
2017-01-13 11:01:27 +01:00
groups = {crumbly=3, wool = 1},
})
2017-02-14 11:27:43 +01:00
2017-01-13 11:01:27 +01:00
minetest.register_craft({
type = "shapeless",
output = "default:wool_"..color,
recipe = {
"group:wool", "default:dye_" .. color
},
2016-01-05 12:41:24 +01:00
})
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},
drop = {
max_items = 1,
items = {
2016-01-23 12:07:58 +01:00
{items = {'default:flint'},rarity = 5},
{items = {'default:gravel'}},
}
}
2016-01-02 12:29:46 +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-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},
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"},
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"},
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"},
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"},
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"},
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
-- 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(),
})
minetest.register_node("default:coalblock_glowing", {
2016-06-19 11:33:49 +02:00
description = "Glowing Coalblock",
tiles = {"default_coalblock_glowing.png"},
light_source = 7,
groups = {cracky = 2},
2016-04-23 21:22:42 +02:00
sounds = default.sounds.stone(),
})
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",
2016-11-19 13:21:34 +01:00
walkable = true,
2016-10-16 13:05:20 +02:00
groups = {choppy = 1, cracky= 1, attached_node = 1},
2016-11-19 13:21:34 +01:00
collision_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}
},
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -7/16, 0.5}
},
2016-01-06 12:53:30 +01:00
})
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",
})
-- alias
minetest.register_alias("default:dirt_with_grass", "default:grass")
minetest.register_alias("default:dirt_with_dry_grass", "default:dry_grass")