2015-09-01 17:15:24 +02:00
|
|
|
--
|
|
|
|
-- Node definitions
|
2016-11-14 02:22:44 +01:00
|
|
|
--wate
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:stone",
|
|
|
|
{
|
|
|
|
description = "Stone",
|
|
|
|
tiles ={"default_stone.png"},
|
|
|
|
groups = {cracky=2, stone=1},
|
|
|
|
drop = "default:cobble",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:cobble",
|
|
|
|
{
|
|
|
|
description = "Cobble",
|
|
|
|
tiles ={"default_cobbles.png"},
|
|
|
|
stack_max = 240,
|
|
|
|
groups = {cracky=3, stone=1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:reinforced_cobble",
|
|
|
|
{
|
|
|
|
description = "Reinforced Cobble",
|
|
|
|
tiles ={"default_reinforced_cobbles.png"},
|
|
|
|
groups = {cracky=1, stone=1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:stone_with_coal",
|
|
|
|
{
|
|
|
|
description = "Stone with Coal",
|
|
|
|
tiles ={"default_stone.png^default_mineral_coal.png"},
|
2015-09-01 18:05:38 +02:00
|
|
|
groups = {cracky = 1, stone = 1, not_in_craftingguide = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = "default:lump_coal",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:stone_with_iron",
|
|
|
|
{
|
|
|
|
description = "Stone with Iron",
|
|
|
|
tiles ={"default_stone.png^default_mineral_iron.png"},
|
2015-09-01 18:04:26 +02:00
|
|
|
groups = {cracky=1, stone=1, not_in_craftingguide = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = "default:lump_iron",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:block_steel",
|
|
|
|
{
|
|
|
|
description = "Steel Block",
|
|
|
|
tiles ={"default_block_steel.png"},
|
|
|
|
groups = {cracky=1},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:block_coal",
|
|
|
|
{
|
|
|
|
description = "Coal Block",
|
|
|
|
tiles ={"default_block_coal.png"},
|
|
|
|
groups = {choppy=3, oddly_breakable_by_hand = 3},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:dirt",
|
|
|
|
{
|
|
|
|
description = "Dirt",
|
|
|
|
tiles ={"default_dirt.png"},
|
|
|
|
stack_max = 240,
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-04 00:17:00 +02:00
|
|
|
"default:dry_dirt",
|
|
|
|
{
|
|
|
|
description = "Dry Dirt",
|
|
|
|
tiles ={"default_dirt.png"},
|
|
|
|
stack_max = 240,
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_sandy = 1, fall_damage_add_percent=-10},
|
2015-10-04 00:17:00 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_dirt",
|
|
|
|
{
|
|
|
|
description = "Swamp Dirt",
|
|
|
|
tiles ={"default_swamp_dirt.png"},
|
|
|
|
stack_max = 240,
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-10},
|
2015-10-03 22:36:01 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-18 02:31:07 +02:00
|
|
|
"default:fertilized_dirt",
|
|
|
|
{
|
|
|
|
description = "Fertilized Dirt",
|
|
|
|
tiles ={"default_dirt.png^default_fertilizer.png", "default_dirt.png", "default_dirt.png"},
|
|
|
|
groups = {
|
|
|
|
crumbly=3,
|
|
|
|
soil=1,
|
|
|
|
plantable_soil = 1,
|
|
|
|
plantable_fertilizer = 1,
|
|
|
|
fall_damage_add_percent=-5,
|
|
|
|
not_in_craftingguide = 1,
|
|
|
|
},
|
|
|
|
drop = "default:dirt",
|
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-02 02:10:41 +02:00
|
|
|
"default:dirt_with_dry_grass",
|
|
|
|
{
|
|
|
|
description = "Dirt with Dry Grass",
|
|
|
|
tiles ={"default_dry_grass.png", "default_dirt.png", "default_dirt.png^default_dry_grass_side.png"},
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_sandy = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
2015-10-02 02:10:41 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:dirt"}, rarity = 1},
|
2015-10-03 00:46:25 +02:00
|
|
|
{items = {"default:dry_grass 4"}, rarity = 12},
|
|
|
|
{items = {"default:dry_grass 2"}, rarity = 6},
|
|
|
|
{items = {"default:dry_grass 1"}, rarity = 2},
|
2015-10-02 02:10:41 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
|
|
|
footstep = {name="default_soft_footstep", gain=0.3},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:dirt_with_swamp_grass",
|
|
|
|
{
|
|
|
|
description = "Dirt with Swamp Grass",
|
|
|
|
tiles ={"default_swamp_grass.png", "default_swamp_dirt.png", "default_swamp_dirt.png^default_swamp_grass_side.png"},
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
2015-10-03 22:36:01 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
2015-10-03 22:37:51 +02:00
|
|
|
{items = {"default:swamp_dirt"}, rarity = 1},
|
2015-10-03 22:36:01 +02:00
|
|
|
{items = {"default:swamp_grass 6"}, rarity = 14},
|
|
|
|
{items = {"default:swamp_grass 3"}, rarity = 7},
|
|
|
|
{items = {"default:swamp_grass 2"}, rarity = 3},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
|
|
|
footstep = {name="default_soft_footstep", gain=0.5},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:dirt_with_grass",
|
|
|
|
{
|
|
|
|
description = "Dirt with Grass",
|
|
|
|
tiles ={"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:dirt"}, rarity = 1},
|
|
|
|
{items = {"default:grass 10"}, rarity = 30},
|
|
|
|
{items = {"default:grass 3"}, rarity = 9},
|
|
|
|
{items = {"default:grass 2"}, rarity = 6},
|
|
|
|
{items = {"default:grass 1"}, rarity = 3},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
|
|
|
footstep = {name="default_soft_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 18:53:09 +02:00
|
|
|
"default:dirt_with_grass_footsteps",
|
|
|
|
{
|
|
|
|
description = "Dirt with Grass Footsteps",
|
|
|
|
tiles ={"default_grass_footstep.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
2015-10-08 20:21:12 +02:00
|
|
|
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
2015-09-24 18:53:09 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:dirt"}, rarity = 1},
|
|
|
|
{items = {"default:grass 10"}, rarity = 30},
|
|
|
|
{items = {"default:grass 3"}, rarity = 9},
|
|
|
|
{items = {"default:grass 2"}, rarity = 6},
|
|
|
|
{items = {"default:grass 1"}, rarity = 3},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
|
|
|
footstep = {name="default_soft_footstep", gain=0.4},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:dirt_path",
|
|
|
|
{
|
|
|
|
description = "Dirt Path",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5-2/16, 0.5}
|
|
|
|
},
|
|
|
|
tiles ={"default_dirt.png"},
|
|
|
|
groups = {crumbly=3, fall_damage_add_percent=-10},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-23 21:19:57 +02:00
|
|
|
"default:path_slab",
|
|
|
|
{
|
|
|
|
description = "Dirt Path Slab",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
2015-10-23 21:24:13 +02:00
|
|
|
fixed = {-0.5, -0.5 - (2/16), -0.5, 0.5, -2/16, 0.5}
|
2015-10-23 21:19:57 +02:00
|
|
|
},
|
|
|
|
tiles ={"default_dirt.png"},
|
|
|
|
groups = {crumbly=3, fall_damage_add_percent=-10},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-23 21:19:57 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:heated_dirt_path",
|
|
|
|
{
|
|
|
|
description = "Heated Dirt Path",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
light_source = 6,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5-2/16, 0.5}
|
|
|
|
},
|
|
|
|
tiles ={"default_dirt.png"},
|
|
|
|
groups = {crumbly=3, fall_damage_add_percent=-10},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:brick",
|
|
|
|
{
|
|
|
|
description = "Brick",
|
|
|
|
tiles ={"default_brick.png"},
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {cracky = 2},
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sand",
|
|
|
|
{
|
|
|
|
description = "Sand",
|
|
|
|
tiles ={"default_sand.png"},
|
2015-10-08 20:05:50 +02:00
|
|
|
groups = {crumbly = 3, falling_node = 1, sand = 1, plantable_sandy = 1, fall_damage_add_percent = -10},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_sand_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-18 02:31:07 +02:00
|
|
|
"default:fertilized_sand",
|
|
|
|
{
|
|
|
|
description = "Fertilized Sand",
|
|
|
|
tiles = {"default_sand.png^default_fertilizer.png", "default_sand.png", "default_sand.png"},
|
|
|
|
groups = {
|
|
|
|
crumbly = 3,
|
|
|
|
falling_node = 1,
|
|
|
|
sand = 1,
|
|
|
|
plantable_sandy = 1,
|
|
|
|
plantable_fertilizer = 1,
|
|
|
|
fall_damage_add_percent = -10,
|
|
|
|
not_in_craftingguide = 1,
|
|
|
|
},
|
|
|
|
drop = "default:sand",
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-18 02:31:07 +02:00
|
|
|
sounds = default.node_sound_sand_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sandstone",
|
|
|
|
{
|
|
|
|
description = "Sandstone",
|
|
|
|
tiles ={"default_sandstone.png"},
|
|
|
|
groups = {crumbly = 2, cracky = 3},
|
|
|
|
drop = "default:sand 2",
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 18:53:09 +02:00
|
|
|
"default:compressed_sandstone",
|
|
|
|
{
|
|
|
|
description = "Compressed Sandstone",
|
|
|
|
tiles ={"default_compressed_sandstone_top.png", "default_compressed_sandstone_top.png", "default_compressed_sandstone.png"},
|
|
|
|
groups = {cracky = 2},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-24 18:53:09 +02:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:gravel",
|
|
|
|
{
|
|
|
|
description = "Gravel",
|
|
|
|
tiles ={"default_gravel.png"},
|
|
|
|
groups = {crumbly = 2, falling_node = 1},
|
|
|
|
sounds = default.node_sound_dirt_defaults(
|
|
|
|
{
|
|
|
|
footstep = {name="default_crunch_footstep", gain=0.45},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sapling_oak",
|
|
|
|
{
|
|
|
|
description = "Oak Sapling",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles ={"default_sapling_oak.png"},
|
|
|
|
inventory_image = "default_sapling_oak_inventory.png",
|
|
|
|
wield_image = "default_sapling_oak_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
|
|
|
},
|
|
|
|
groups = {snappy = 2, dig_immediate = 2, attached_node = 1, sapling = 1},
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:tree_oak",
|
|
|
|
{
|
|
|
|
description = "Oak Tree",
|
|
|
|
tiles = {"default_tree_oak_top.png", "default_tree_oak_top.png", "default_tree_oak.png"},
|
2015-10-08 20:31:09 +02:00
|
|
|
groups = {choppy=1, tree=1, oddly_breakable_by_hand=1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:leaves_oak",
|
|
|
|
{
|
|
|
|
description = "Oak Leaves",
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles ={"default_leaves_oak.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
groups = {snappy=3, leafdecay=4, fall_damage_add_percent=-5, leaves = 1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling_oak"},
|
|
|
|
rarity = 10,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves_oak"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
2015-09-03 03:13:14 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node( -- looks just like default oak leaves, except they decay much farther
|
2015-09-03 03:13:14 +02:00
|
|
|
"default:leaves_oak_huge",
|
|
|
|
{
|
|
|
|
description = "Oak Leaves(Huge)",
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles ={"default_leaves_oak.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
groups = {snappy=3, leafdecay=10, fall_damage_add_percent=-5, leaves = 1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling_oak"},
|
|
|
|
rarity = 40,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves_oak"},
|
|
|
|
rarity = 10,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sapling_birch",
|
|
|
|
{
|
|
|
|
description = "Birch Sapling",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles ={"default_sapling_birch.png"},
|
|
|
|
inventory_image = "default_sapling_birch_inventory.png",
|
|
|
|
wield_image = "default_sapling_birch_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
|
|
|
},
|
|
|
|
groups = {snappy=2, dig_immediate=2, attached_node=1, sapling = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:tree_birch",
|
|
|
|
{
|
|
|
|
description = "Birch Tree",
|
|
|
|
tiles = {"default_tree_birch_top.png", "default_tree_birch_top.png", "default_tree_birch.png"},
|
2015-10-08 20:31:09 +02:00
|
|
|
groups = {choppy=2, tree=1, oddly_breakable_by_hand=1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:leaves_birch",
|
|
|
|
{
|
|
|
|
description = "Birch Leaves",
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles ={"default_leaves_birch.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
2015-09-01 22:52:01 +02:00
|
|
|
groups = {snappy=3, leafdecay=6, fall_damage_add_percent=-5, leaves = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling_birch"},
|
|
|
|
rarity = 10,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves_birch"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sapling",
|
|
|
|
{
|
|
|
|
description = "Sapling",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles ={"default_sapling.png"},
|
|
|
|
inventory_image = "default_sapling_inventory.png",
|
|
|
|
wield_image = "default_sapling_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
|
|
|
},
|
|
|
|
groups = {snappy=2, dig_immediate=2, attached_node=1, sapling = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:tree",
|
|
|
|
{
|
|
|
|
description = "Tree",
|
|
|
|
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
2015-10-08 20:31:09 +02:00
|
|
|
groups = {choppy=2,tree=1,oddly_breakable_by_hand=1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:leaves",
|
|
|
|
{
|
|
|
|
description = "Leaves",
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles ={"default_leaves.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
groups = {snappy=3, leafdecay=3, fall_damage_add_percent=-10, leaves = 1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:sapling"},
|
|
|
|
rarity = 10,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:leaves"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 20:57:35 +02:00
|
|
|
"default:dry_leaves",
|
|
|
|
{
|
|
|
|
description = "Dry Leaves",
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
visual_scale = 1.3,
|
|
|
|
tiles ={"default_dry_leaves.png"},
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
groups = {snappy=3, leafdecay=3, fall_damage_add_percent=-20, leaves = 1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"default:dry_leaves"},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"default:dry_grass"},
|
|
|
|
rarity = 6,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:cactus",
|
|
|
|
{
|
|
|
|
description = "Cactus",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(1/8), -0.5, -0.5+(1/8), 0.5-(1/8), 0.5, 0.5-(1/8)},
|
|
|
|
{-0.5, -0.5, -0.5+(1/3), 0.5, 0.5-(1/3), 0.5-(1/3)},
|
|
|
|
{-0.5+(1/3), -0.5, -0.5, 0.5-(1/3), 0.5-(1/3), 0.5},
|
|
|
|
},
|
|
|
|
},
|
2015-09-26 22:02:24 +02:00
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(1/8), -0.5, -0.5+(1/8), 0.5-(1/8), 0.5, 0.5-(1/8)},
|
|
|
|
},
|
|
|
|
},
|
2015-09-01 17:15:24 +02:00
|
|
|
tiles ={"default_cactus_top.png", "default_cactus_top.png", "default_cactus_sides.png"},
|
|
|
|
-- damage_per_second = 1,
|
|
|
|
groups = {snappy=2, choppy=2, fall_damage_add_percent=20},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
2017-05-12 04:29:55 +02:00
|
|
|
on_use = minetest.item_eat({hp = 2, sat = 5}),
|
2015-09-01 17:15:24 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-02 02:23:04 +02:00
|
|
|
"default:rope",
|
|
|
|
{
|
|
|
|
description = "Rope",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={"default_rope.png"},
|
|
|
|
inventory_image = "default_rope_inventory.png",
|
|
|
|
wield_image = "default_rope_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
sunlight_propagates = true,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-02 02:23:04 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_down(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-02 02:23:04 +02:00
|
|
|
"default:papyrus",
|
|
|
|
{
|
|
|
|
description = "Papyrus",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={"default_papyrus.png"},
|
|
|
|
inventory_image = "default_papyrus_inventory.png",
|
|
|
|
wield_image = "default_papyrus_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5+(2/16), -0.5, -0.5+(2/16), 0.5-(2/16), 0.5, 0.5-(2/16)}
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(2/16), -0.5, -0.5+(2/16), -0.5+(4/16), 0.5, -0.5+(4/16)},
|
|
|
|
{0.5-(2/16), -0.5, -0.5+(2/16), 0.5-(4/16), 0.5, -0.5+(4/16)},
|
|
|
|
{-0.5+(2/16), -0.5, 0.5-(2/16), -0.5+(4/16), 0.5, 0.5-(4/16)},
|
|
|
|
{0.5-(2/16), -0.5, 0.5-(2/16), 0.5-(4/16), 0.5, 0.5-(4/16)},
|
|
|
|
{-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:papyrus",
|
|
|
|
{
|
|
|
|
description = "Papyrus",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={"default_papyrus.png"},
|
|
|
|
inventory_image = "default_papyrus_inventory.png",
|
|
|
|
wield_image = "default_papyrus_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5+(2/16), -0.5, -0.5+(2/16), 0.5-(2/16), 0.5, 0.5-(2/16)}
|
|
|
|
},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(2/16), -0.5, -0.5+(2/16), -0.5+(4/16), 0.5, -0.5+(4/16)},
|
|
|
|
{0.5-(2/16), -0.5, -0.5+(2/16), 0.5-(4/16), 0.5, -0.5+(4/16)},
|
|
|
|
{-0.5+(2/16), -0.5, 0.5-(2/16), -0.5+(4/16), 0.5, 0.5-(4/16)},
|
|
|
|
{0.5-(2/16), -0.5, 0.5-(2/16), 0.5-(4/16), 0.5, 0.5-(4/16)},
|
|
|
|
{-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy=3},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:bookshelf",
|
|
|
|
{
|
|
|
|
description = "Bookshelf",
|
2015-11-27 22:17:37 +01:00
|
|
|
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
|
|
|
paramtype2 = "facedir",
|
2015-09-01 17:15:24 +02:00
|
|
|
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_construct = function(pos)
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos)
|
2017-05-14 00:15:43 +02:00
|
|
|
meta:set_string("formspec", default.ui.get_page("default:bookshelf"))
|
2015-09-01 17:15:24 +02:00
|
|
|
meta:set_string("infotext", "Bookshelf")
|
|
|
|
local inv = meta:get_inventory()
|
2015-09-10 17:42:43 +02:00
|
|
|
inv:set_size("main", 4*2)
|
2015-09-01 17:15:24 +02:00
|
|
|
end,
|
|
|
|
can_dig = function(pos,player)
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos);
|
2015-09-01 17:15:24 +02:00
|
|
|
local inv = meta:get_inventory()
|
|
|
|
return inv:is_empty("main")
|
|
|
|
end,
|
2015-10-23 19:38:24 +02:00
|
|
|
write_name = function(pos, text)
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos)
|
2015-10-23 19:38:24 +02:00
|
|
|
|
|
|
|
if text ~= "" then
|
|
|
|
meta:set_string("infotext", text)
|
|
|
|
else
|
|
|
|
meta:set_string("infotext", "Bookshelf")
|
|
|
|
end
|
|
|
|
end,
|
2015-09-01 17:15:24 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:glass",
|
|
|
|
{
|
|
|
|
description = "Glass",
|
|
|
|
drawtype = "glasslike_framed_optional",
|
2015-10-21 23:51:11 +02:00
|
|
|
tiles ={"default_glass_frame.png", "default_glass.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
paramtype = "light",
|
2015-10-21 00:32:46 +02:00
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=2},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:fence",
|
|
|
|
{
|
|
|
|
description = "Wooden Fence",
|
|
|
|
drawtype = "fencelike",
|
2015-10-20 21:13:08 +02:00
|
|
|
tiles ={"default_wood.png^default_fence_overlay.png"},
|
2015-09-01 17:15:24 +02:00
|
|
|
inventory_image = "default_fence.png",
|
|
|
|
wield_image = "default_fence.png",
|
|
|
|
paramtype = "light",
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
|
|
|
|
},
|
|
|
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-30 22:44:56 +02:00
|
|
|
"default:fence_oak",
|
|
|
|
{
|
|
|
|
description = "Oak Fence",
|
|
|
|
drawtype = "fencelike",
|
2015-10-20 21:13:08 +02:00
|
|
|
tiles ={"default_wood_oak.png^default_fence_overlay.png"},
|
2015-09-30 22:44:56 +02:00
|
|
|
inventory_image = "default_fence_oak.png",
|
|
|
|
wield_image = "default_fence_oak.png",
|
|
|
|
paramtype = "light",
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
|
|
|
|
},
|
|
|
|
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-30 22:44:56 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-30 22:44:56 +02:00
|
|
|
"default:fence_birch",
|
|
|
|
{
|
|
|
|
description = "Birch Fence",
|
|
|
|
drawtype = "fencelike",
|
2015-10-20 21:13:08 +02:00
|
|
|
tiles ={"default_wood_birch.png^default_fence_overlay.png"},
|
2015-09-30 22:44:56 +02:00
|
|
|
inventory_image = "default_fence_birch.png",
|
|
|
|
wield_image = "default_fence_birch.png",
|
|
|
|
paramtype = "light",
|
|
|
|
collision_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
|
|
|
|
},
|
|
|
|
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-30 22:44:56 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:ladder",
|
|
|
|
{
|
|
|
|
description = "Ladder",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={"default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder.png"},
|
|
|
|
inventory_image = "default_ladder_inventory.png",
|
|
|
|
wield_image = "default_ladder_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
walkable = false,
|
|
|
|
climbable = true,
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5+(1/16), -0.5, 0.5, -0.5+(4/16), 0.5, 0.5-(2/16)},
|
|
|
|
{0.5-(1/16), -0.5, 0.5, 0.5-(4/16), 0.5, 0.5-(2/16)},
|
|
|
|
{-0.5+(4/16), 0.5-(3/16), 0.5, 0.5-(4/16), 0.5-(5/16), 0.5-(1/16)},
|
|
|
|
{-0.5+(4/16), -0.5+(3/16), 0.5, 0.5-(4/16), -0.5+(5/16), 0.5-(1/16)}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, 0.5, 0.5, 0.5, 0.5-(2/15)}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:planks",
|
|
|
|
{
|
|
|
|
description = "Planks",
|
|
|
|
tiles ={"default_wood.png"},
|
|
|
|
groups = {planks = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:planks_oak",
|
|
|
|
{
|
|
|
|
description = "Oak Planks",
|
|
|
|
tiles ={"default_wood_oak.png"},
|
|
|
|
groups = {planks = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 3},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:planks_birch",
|
|
|
|
{
|
|
|
|
description = "Birch Planks",
|
|
|
|
tiles ={"default_wood_birch.png"},
|
|
|
|
groups = {planks = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:frame",
|
|
|
|
{
|
|
|
|
description = "Frame",
|
|
|
|
tiles ={"default_frame.png"},
|
|
|
|
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:reinforced_frame",
|
|
|
|
{
|
|
|
|
description = "Reinforced Frame",
|
|
|
|
tiles ={"default_reinforced_frame.png"},
|
|
|
|
groups = {wood = 1, choppy = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:water_flowing",
|
|
|
|
{
|
|
|
|
description = "Water (flowing)",
|
|
|
|
drawtype = "flowingliquid",
|
|
|
|
tiles ={"default_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
|
|
|
backface_culling=false,
|
|
|
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
|
|
|
backface_culling=false,
|
|
|
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-09-01 17:15:24 +02:00
|
|
|
alpha = default.WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 1,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:water_flowing",
|
|
|
|
liquid_alternative_source = "default:water_source",
|
|
|
|
liquid_viscosity = default.WATER_VISC,
|
2015-09-24 18:59:56 +02:00
|
|
|
post_effect_color = {a=90, r=40, g=40, b=100},
|
2015-10-01 01:10:06 +02:00
|
|
|
groups = {water=1, flowing_water = 1, liquid=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:water_source",
|
|
|
|
{
|
|
|
|
description = "Water",
|
|
|
|
drawtype = "liquid",
|
|
|
|
tiles ={"default_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_water.png",
|
|
|
|
backface_culling=false,
|
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-09-01 17:15:24 +02:00
|
|
|
alpha = default.WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 1,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:water_flowing",
|
|
|
|
liquid_alternative_source = "default:water_source",
|
|
|
|
liquid_viscosity = default.WATER_VISC,
|
2015-09-24 18:59:56 +02:00
|
|
|
post_effect_color = {a=90, r=40, g=40, b=100},
|
2015-09-01 17:15:24 +02:00
|
|
|
groups = {water=1, liquid=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-27 01:34:45 +02:00
|
|
|
"default:river_water_flowing",
|
|
|
|
{
|
|
|
|
description = "River Water (flowing)",
|
|
|
|
drawtype = "flowingliquid",
|
|
|
|
tiles ={"default_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
|
|
|
backface_culling=false,
|
|
|
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
image = "default_water_animated.png",
|
|
|
|
backface_culling=false,
|
|
|
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-09-27 01:34:45 +02:00
|
|
|
alpha = default.RIVER_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 2,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:river_water_flowing",
|
|
|
|
liquid_alternative_source = "default:river_water_source",
|
|
|
|
liquid_viscosity = default.RIVER_WATER_VISC,
|
2015-09-27 01:46:48 +02:00
|
|
|
liquid_renewable = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
liquid_range = 1,
|
2015-09-27 01:46:48 +02:00
|
|
|
post_effect_color = {a=40, r=40, g=70, b=100},
|
2015-10-01 01:10:06 +02:00
|
|
|
groups = {water=1, flowing_water = 1, river_water = 1, liquid=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-27 01:34:45 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-27 01:34:45 +02:00
|
|
|
"default:river_water_source",
|
|
|
|
{
|
|
|
|
description = "River Water",
|
|
|
|
drawtype = "liquid",
|
|
|
|
tiles ={"default_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
2015-09-27 18:11:48 +02:00
|
|
|
image = "default_water.png",
|
2015-09-27 01:34:45 +02:00
|
|
|
backface_culling=false,
|
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-09-27 01:34:45 +02:00
|
|
|
alpha = default.RIVER_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 2,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:river_water_flowing",
|
|
|
|
liquid_alternative_source = "default:river_water_source",
|
|
|
|
liquid_viscosity = default.RIVER_WATER_VISC,
|
2015-09-27 01:46:48 +02:00
|
|
|
liquid_renewable = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
liquid_range = 1,
|
2015-09-27 01:46:48 +02:00
|
|
|
post_effect_color = {a=40, r=40, g=70, b=100},
|
2015-10-01 01:10:06 +02:00
|
|
|
groups = {water = 1, river_water = 1, liquid = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-27 01:34:45 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_water_flowing",
|
|
|
|
{
|
|
|
|
description = "Swamp Water (flowing)",
|
|
|
|
drawtype = "flowingliquid",
|
|
|
|
tiles ={"default_swamp_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_swamp_water_animated.png",
|
|
|
|
backface_culling=false,
|
|
|
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
image = "default_swamp_water_animated.png",
|
|
|
|
backface_culling=false,
|
|
|
|
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-10-03 22:36:01 +02:00
|
|
|
alpha = default.SWAMP_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 3,
|
|
|
|
liquidtype = "flowing",
|
|
|
|
liquid_alternative_flowing = "default:swamp_water_flowing",
|
|
|
|
liquid_alternative_source = "default:swamp_water_source",
|
|
|
|
liquid_viscosity = default.SWAMP_WATER_VISC,
|
|
|
|
liquid_renewable = false,
|
|
|
|
liquid_range = 2,
|
|
|
|
post_effect_color = {a=220, r=50, g=40, b=70},
|
|
|
|
groups = {water=1, flowing_water = 1, swamp_water = 1, liquid=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_water_source",
|
|
|
|
{
|
|
|
|
description = "Swamp Water",
|
|
|
|
drawtype = "liquid",
|
|
|
|
tiles ={"default_swamp_water.png"},
|
|
|
|
special_tiles = {
|
|
|
|
{
|
|
|
|
image = "default_swamp_water.png",
|
|
|
|
backface_culling=false,
|
|
|
|
},
|
|
|
|
},
|
2016-11-14 02:22:44 +01:00
|
|
|
drop= "",
|
2015-10-03 22:36:01 +02:00
|
|
|
alpha = default.SWAMP_WATER_ALPHA,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
diggable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drowning = 3,
|
|
|
|
liquidtype = "source",
|
|
|
|
liquid_alternative_flowing = "default:swamp_water_flowing",
|
|
|
|
liquid_alternative_source = "default:swamp_water_source",
|
|
|
|
liquid_viscosity = default.SWAMP_WATER_VISC,
|
|
|
|
liquid_renewable = false,
|
|
|
|
liquid_range = 2,
|
|
|
|
post_effect_color = {a=220, r=50, g=40, b=70},
|
|
|
|
groups = {water = 1, swamp_water = 1, liquid = 1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-10-03 22:36:01 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 19:59:16 +02:00
|
|
|
"default:torch_dead",
|
|
|
|
{
|
|
|
|
description = "Dead Torch",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={
|
|
|
|
{
|
|
|
|
name = "default_torch_3d_ends.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default_torch_3d_ends.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default_torch_3d.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
inventory_image = "default_torch_dead.png",
|
|
|
|
wield_image = "default_torch_dead.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
node_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
wall_top = {-2/16, 0, -2/16, 2/16, 0.5, 2/16},
|
|
|
|
wall_bottom = {-2/16, -0.5, -2/16, 2/16, 0, 2/16},
|
|
|
|
wall_side = {-0.5, -8/16, -0.1, -0.5+4/16, 0, 0.1},
|
|
|
|
},
|
|
|
|
groups = {choppy=2, dig_immediate=3, attached_node=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-24 19:59:16 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 22:33:53 +02:00
|
|
|
"default:torch_weak",
|
2015-09-01 17:15:24 +02:00
|
|
|
{
|
2015-09-24 22:33:53 +02:00
|
|
|
description = "Weak Torch",
|
2015-09-01 17:15:24 +02:00
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={
|
|
|
|
{
|
2015-10-16 23:29:27 +02:00
|
|
|
name = "default_torch_3d_ends_animated.png",
|
2015-09-01 17:15:24 +02:00
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default_torch_3d_ends.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2015-10-16 23:29:27 +02:00
|
|
|
name = "default_torch_3d_animated.png",
|
2015-09-01 17:15:24 +02:00
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
inventory_image = "default_torch.png",
|
|
|
|
wield_image = "default_torch.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
2015-09-24 22:33:53 +02:00
|
|
|
light_source = default.LIGHT_MAX-4,
|
2015-09-01 17:15:24 +02:00
|
|
|
node_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
wall_top = {-2/16, 0, -2/16, 2/16, 0.5, 2/16},
|
|
|
|
wall_bottom = {-2/16, -0.5, -2/16, 2/16, 0, 2/16},
|
|
|
|
wall_side = {-0.5, -8/16, -0.1, -0.5+4/16, 0, 0.1},
|
|
|
|
},
|
|
|
|
groups = {choppy=2, dig_immediate=3, attached_node=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
2015-09-24 22:33:53 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-24 22:33:53 +02:00
|
|
|
"default:torch",
|
2015-09-24 19:59:16 +02:00
|
|
|
{
|
2015-09-24 22:33:53 +02:00
|
|
|
description = "Torch",
|
2015-09-24 19:59:16 +02:00
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={
|
|
|
|
{
|
2015-10-16 23:29:27 +02:00
|
|
|
name = "default_torch_3d_ends_animated.png",
|
2015-09-24 19:59:16 +02:00
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "default_torch_3d_ends.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2015-10-16 23:29:27 +02:00
|
|
|
name = "default_torch_3d_animated.png",
|
2015-09-24 19:59:16 +02:00
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 1.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
inventory_image = "default_torch.png",
|
|
|
|
wield_image = "default_torch.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
2015-09-24 22:33:53 +02:00
|
|
|
light_source = default.LIGHT_MAX-1,
|
2015-09-24 19:59:16 +02:00
|
|
|
node_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
wall_top = {-2/16, 0, -2/16, 2/16, 0.5, 2/16},
|
|
|
|
wall_bottom = {-2/16, -0.5, -2/16, 2/16, 0, 2/16},
|
|
|
|
wall_side = {-0.5, -8/16, -0.1, -0.5+4/16, 0, 0.1},
|
|
|
|
},
|
|
|
|
groups = {choppy=2, dig_immediate=3, attached_node=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-24 19:59:16 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:sign",
|
|
|
|
{
|
|
|
|
description = "Sign",
|
2015-09-24 20:18:01 +02:00
|
|
|
drawtype = "nodebox",
|
2015-09-01 17:15:24 +02:00
|
|
|
tiles = {"default_sign.png"},
|
2015-09-24 20:18:01 +02:00
|
|
|
inventory_image = "default_sign_inventory.png",
|
|
|
|
wield_image = "default_sign_inventory.png",
|
2015-09-01 17:15:24 +02:00
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
2015-09-24 20:18:01 +02:00
|
|
|
node_box = {
|
2015-09-01 17:15:24 +02:00
|
|
|
type = "wallmounted",
|
2015-09-24 20:18:01 +02:00
|
|
|
wall_top = {-0.5+(1/16), 0.5, -0.5+(4/16), 0.5-(1/16), 0.5-(1/16), 0.5-(4/16)},
|
|
|
|
wall_bottom = {-0.5+(1/16), -0.5, -0.5+(4/16), 0.5-(1/16), -0.5+(1/16), 0.5-(4/16)},
|
2015-09-01 17:15:24 +02:00
|
|
|
wall_side = {-0.5, -0.5+(4/16), -0.5+(1/16), -0.5+(1/16), 0.5-(4/16), 0.5-(1/16)},
|
|
|
|
},
|
|
|
|
groups = {choppy=2,dig_immediate=2,attached_node=1},
|
2015-11-27 22:17:37 +01:00
|
|
|
is_ground_content = false,
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
on_construct = function(pos)
|
2017-05-12 04:29:55 +02:00
|
|
|
--local n = minetest.get_node(pos)
|
|
|
|
local meta = minetest.get_meta(pos)
|
2017-05-14 00:15:43 +02:00
|
|
|
meta:set_string("formspec", default.ui.get_page("default:field"))
|
2015-09-10 18:40:07 +02:00
|
|
|
meta:set_string("infotext", '""')
|
2015-10-02 01:22:21 +02:00
|
|
|
meta:set_string("text", "")
|
2015-09-01 17:15:24 +02:00
|
|
|
end,
|
|
|
|
on_receive_fields = function(pos, formname, fields, sender)
|
2017-05-12 04:29:55 +02:00
|
|
|
--print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
|
2015-10-02 18:22:49 +02:00
|
|
|
if fields.text == nil then return end
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
minetest.log("action", (sender:get_player_name() or "")..
|
2015-10-02 01:22:21 +02:00
|
|
|
" wrote \""..fields.text.."\" to sign at "..
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.pos_to_string(pos))
|
2015-09-01 17:15:24 +02:00
|
|
|
meta:set_string("text", fields.text)
|
|
|
|
meta:set_string("infotext", '"'..fields.text..'"')
|
2015-10-19 00:24:47 +02:00
|
|
|
|
|
|
|
default.write_name(pos, meta:get_string("text"))
|
2015-09-01 17:15:24 +02:00
|
|
|
end,
|
2015-10-19 00:24:47 +02:00
|
|
|
on_destruct = function(pos)
|
2017-05-11 03:23:21 +02:00
|
|
|
default.write_name(pos, "")
|
2015-10-19 00:24:47 +02:00
|
|
|
end
|
2015-09-01 17:15:24 +02:00
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-16 22:11:21 +02:00
|
|
|
"default:fern",
|
|
|
|
{
|
|
|
|
description = "Fern",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles ={"default_fern.png"},
|
|
|
|
inventory_image = "default_fern_inventory.png",
|
|
|
|
wield_image = "default_fern_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
2015-12-16 19:01:43 +01:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1},
|
2015-10-16 22:11:21 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-18 02:31:07 +02:00
|
|
|
"default:flower",
|
|
|
|
{
|
|
|
|
description = "Flower",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5 + (1 / 16), 0.5}
|
|
|
|
},
|
|
|
|
tiles = {"default_flowers.png"},
|
|
|
|
inventory_image = "default_flowers_inventory.png",
|
|
|
|
wield_image = "default_flowers_inventory.png",
|
|
|
|
paramtype = "light",
|
2015-10-20 18:29:44 +02:00
|
|
|
sunlight_propagates = true,
|
2015-10-18 02:31:07 +02:00
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-03 22:36:01 +02:00
|
|
|
"default:swamp_grass",
|
|
|
|
{
|
|
|
|
description = "Swamp Grass Clump",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles ={"default_swamp_grass_clump.png"},
|
|
|
|
inventory_image = "default_swamp_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_swamp_grass_clump_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
2015-12-16 19:01:43 +01:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1},
|
2015-10-03 22:36:01 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-02 02:10:41 +02:00
|
|
|
"default:dry_grass",
|
|
|
|
{
|
|
|
|
description = "Dry Grass Clump",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles ={"default_dry_grass_clump.png"},
|
|
|
|
inventory_image = "default_dry_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_dry_grass_clump_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
2015-12-16 19:01:43 +01:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1},
|
2015-10-02 02:10:41 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:grass",
|
|
|
|
{
|
|
|
|
description = "Grass Clump",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles ={"default_grass_clump.png"},
|
|
|
|
inventory_image = "default_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_grass_clump_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
2015-12-16 19:01:43 +01:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:tall_grass",
|
|
|
|
{
|
|
|
|
description = "Tall Grass Clump",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
|
|
|
},
|
|
|
|
visual_scale = 1.15,
|
|
|
|
tiles ={"default_grass_clump_tall.png"},
|
|
|
|
inventory_image = "default_grass_clump_inventory.png",
|
|
|
|
wield_image = "default_grass_clump_inventory.png",
|
|
|
|
drop = "default:grass",
|
|
|
|
paramtype = "light",
|
|
|
|
waving = 1,
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
2015-12-16 19:01:43 +01:00
|
|
|
groups = {snappy = 2, dig_immediate = 3, attached_node = 1, grass = 1},
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-20 18:29:44 +02:00
|
|
|
"default:thistle",
|
|
|
|
{
|
|
|
|
description = "Thistle",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-6/16, -0.5, -6/16, 6/16, 0.5, 6/16}
|
|
|
|
},
|
|
|
|
tiles ={"default_thistle.png"},
|
|
|
|
inventory_image = "default_thistle_inventory.png",
|
|
|
|
wield_image = "default_thistle_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
damage_per_second = 1,
|
|
|
|
groups = {snappy = 3, dig_immediate = 3, falling_node = 1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, node, metadata, digger)
|
|
|
|
default.dig_up(pos, node, digger)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:apple",
|
|
|
|
{
|
|
|
|
description = "Apple",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
visual_scale = 1.0,
|
|
|
|
tiles ={"default_apple_top.png", "default_apple_bottom.png", "default_apple_side.png"},
|
|
|
|
inventory_image = "default_apple.png",
|
|
|
|
wield_image = "default_apple.png",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.25, -0.25, -0.25, 0.25, 0.25, 0.25},
|
|
|
|
{-1/8, 0.25, -1/8, 1/8, 0.5, 1/8},
|
|
|
|
},
|
|
|
|
},
|
2015-10-05 21:14:47 +02:00
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
groups = {fleshy = 3, dig_immediate = 2, leafdecay = 3, leafdecay_drop = 1, attached_node = 1},
|
2017-05-12 04:29:55 +02:00
|
|
|
on_use = minetest.item_eat({hp = 2, sat = 10}),
|
2015-10-05 21:14:47 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-10-05 21:14:47 +02:00
|
|
|
"default:clam",
|
|
|
|
{
|
|
|
|
description = "Clam",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles ={"default_clam.png"},
|
|
|
|
inventory_image = "default_clam_inventory.png",
|
|
|
|
wield_image = "default_clam_inventory.png",
|
|
|
|
paramtype = "light",
|
|
|
|
node_box = {
|
2015-09-01 17:15:24 +02:00
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2015-10-05 21:14:47 +02:00
|
|
|
{-3/16, -0.5, -3/16, 3/16, -6/16, 3/16},
|
2015-09-01 17:15:24 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
2015-10-05 21:14:47 +02:00
|
|
|
drop = {
|
|
|
|
max_items = 3,
|
|
|
|
items = {
|
|
|
|
{items = {"default:clam"}, rarity = 1},
|
|
|
|
{items = {"default:pearl"}, rarity = 60},
|
|
|
|
{items = {"default:pearl"}, rarity = 20},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
groups = {fleshy = 3, oddly_breakable_by_hand = 2, choppy = 3, attached_node = 1},
|
2017-05-12 04:29:55 +02:00
|
|
|
on_use = minetest.item_eat({hp = 4, sat = 40}),
|
2015-09-01 17:15:24 +02:00
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2017-05-12 04:29:55 +02:00
|
|
|
minetest.register_node(
|
2015-09-01 17:15:24 +02:00
|
|
|
"default:chest",
|
|
|
|
{
|
|
|
|
description = "Chest",
|
|
|
|
tiles ={"default_chest_top.png", "default_chest_top.png", "default_chest_sides.png",
|
|
|
|
"default_chest_sides.png", "default_chest_sides.png", "default_chest_front.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
|
|
|
is_ground_content = false,
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_construct = function(pos)
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos)
|
2015-09-01 17:15:24 +02:00
|
|
|
meta:set_string("formspec", default.ui.get_page("default_chest"))
|
|
|
|
meta:set_string("infotext", "Chest")
|
|
|
|
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("main", 8*4)
|
|
|
|
end,
|
|
|
|
can_dig = function(pos, player)
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos)
|
2015-09-01 17:15:24 +02:00
|
|
|
local inv = meta:get_inventory()
|
|
|
|
return inv:is_empty("main")
|
|
|
|
end,
|
2015-10-19 00:24:47 +02:00
|
|
|
write_name = function(pos, text)
|
2017-05-12 04:29:55 +02:00
|
|
|
local meta = minetest.get_meta(pos)
|
2015-10-19 00:24:47 +02:00
|
|
|
|
|
|
|
if text ~= "" then
|
|
|
|
meta:set_string("infotext", text)
|
|
|
|
else
|
|
|
|
meta:set_string("infotext", "Chest")
|
|
|
|
end
|
|
|
|
end,
|
2015-09-01 17:15:24 +02:00
|
|
|
})
|
|
|
|
|
2017-05-14 00:15:43 +02:00
|
|
|
local form_chest = default.ui.get_page("default:2part")
|
2015-09-01 17:15:24 +02:00
|
|
|
form_chest = form_chest .. "list[current_name;main;0.25,0.25;8,4;]"
|
|
|
|
form_chest = form_chest .. "listring[current_name;main]"
|
|
|
|
form_chest = form_chest .. default.ui.get_itemslot_bg(0.25, 0.25, 8, 4)
|
|
|
|
|
|
|
|
form_chest = form_chest .. "list[current_player;main;0.25,4.75;8,4;]"
|
|
|
|
form_chest = form_chest .. "listring[current_player;main]"
|
|
|
|
form_chest = form_chest .. default.ui.get_hotbar_itemslot_bg(0.25, 4.75, 8, 1)
|
|
|
|
form_chest = form_chest .. default.ui.get_itemslot_bg(0.25, 5.75, 8, 3)
|
2017-05-14 00:15:43 +02:00
|
|
|
default.ui.register_page("default:chest", form_chest)
|
2015-09-01 17:15:24 +02:00
|
|
|
|
2016-11-14 02:22:44 +01:00
|
|
|
default.log("nodes", "loaded")
|