minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
- is_ground_content = true,
groups = {cracky=3, stone=1},
drop = 'default:cobble',
legacy_mineral = true,
minetest.register_node("default:cobble", {
description = "Cobblestone",
tiles = {"default_cobble.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=3, stone=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stonebrick", {
description = "Stone Brick",
tiles = {"default_stone_brick.png"},
+ is_ground_content = false,
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:mossycobble", {
description = "Mossy Cobblestone",
tiles = {"default_mossycobble.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=3, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stone", {
description = "Desert Stone",
tiles = {"default_desert_stone.png"},
- is_ground_content = true,
groups = {cracky=3, stone=1},
drop = 'default:desert_cobble',
legacy_mineral = true,
minetest.register_node("default:desert_cobble", {
description = "Desert Cobblestone",
tiles = {"default_desert_cobble.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=3, stone=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stonebrick", {
description = "Desert Stone Brick",
tiles = {"default_desert_stone_brick.png"},
+ is_ground_content = false,
groups = {cracky=2, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:sandstone", {
description = "Sandstone",
tiles = {"default_sandstone.png"},
- is_ground_content = true,
groups = {crumbly=2,cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:sandstonebrick", {
description = "Sandstone Brick",
tiles = {"default_sandstone_brick.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:obsidian", {
description = "Obsidian",
tiles = {"default_obsidian.png"},
- is_ground_content = true,
sounds = default.node_sound_stone_defaults(),
groups = {cracky=1,level=2},
})
minetest.register_node("default:obsidianbrick", {
description = "Obsidian Brick",
tiles = {"default_obsidian_brick.png"},
+ is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
groups = {cracky=1,level=2},
})
minetest.register_node("default:dirt", {
description = "Dirt",
tiles = {"default_dirt.png"},
- is_ground_content = true,
groups = {crumbly=3,soil=1},
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("default:dirt_with_grass", {
description = "Dirt with Grass",
tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
- is_ground_content = true,
groups = {crumbly=3,soil=1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
minetest.register_node("default:dirt_with_grass_footsteps", {
description = "Dirt with Grass and Footsteps",
tiles = {"default_grass_footsteps.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
- is_ground_content = true,
groups = {crumbly=3,soil=1,not_in_creative_inventory=1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
minetest.register_node("default:dirt_with_snow", {
description = "Dirt with Snow",
tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_snow_side.png"},
- is_ground_content = true,
groups = {crumbly=3,soil=1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
minetest.register_node("default:sand", {
description = "Sand",
tiles = {"default_sand.png"},
- is_ground_content = true,
groups = {crumbly=3, falling_node=1, sand=1},
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node("default:desert_sand", {
description = "Desert Sand",
tiles = {"default_desert_sand.png"},
- is_ground_content = true,
groups = {crumbly=3, falling_node=1, sand=1},
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
- is_ground_content = true,
groups = {crumbly=2, falling_node=1},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
minetest.register_node("default:clay", {
description = "Clay",
tiles = {"default_clay.png"},
- is_ground_content = true,
groups = {crumbly=3},
drop = 'default:clay_lump 4',
sounds = default.node_sound_dirt_defaults(),
tiles = {"default_snow.png"},
inventory_image = "default_snowball.png",
wield_image = "default_snowball.png",
- is_ground_content = true,
paramtype = "light",
buildable_to = true,
drawtype = "nodebox",
minetest.register_node("default:snowblock", {
description = "Snow Block",
tiles = {"default_snow.png"},
- is_ground_content = true,
groups = {crumbly=3},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_snow_footstep", gain=0.25},
minetest.register_node("default:wood", {
description = "Wooden Planks",
tiles = {"default_wood.png"},
+ is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
})
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- is_ground_content = true,
+ is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
minetest.register_node("default:junglewood", {
description = "Junglewood Planks",
tiles = {"default_junglewood.png"},
+ is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:pinewood", {
description = "Pinewood Planks",
tiles = {"default_pinewood.png"},
+ is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1},
sounds = default.node_sound_wood_defaults(),
})
wield_image = "default_pine_sapling.png",
paramtype = "light",
walkable = false,
- is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
minetest.register_node("default:stone_with_coal", {
description = "Coal Ore",
tiles = {"default_stone.png^default_mineral_coal.png"},
- is_ground_content = true,
groups = {cracky=3},
drop = 'default:coal_lump',
sounds = default.node_sound_stone_defaults(),
minetest.register_node("default:coalblock", {
description = "Coal Block",
tiles = {"default_coal_block.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_iron", {
description = "Iron Ore",
tiles = {"default_stone.png^default_mineral_iron.png"},
- is_ground_content = true,
groups = {cracky=2},
drop = 'default:iron_lump',
sounds = default.node_sound_stone_defaults(),
minetest.register_node("default:steelblock", {
description = "Steel Block",
tiles = {"default_steel_block.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_copper", {
description = "Copper Ore",
tiles = {"default_stone.png^default_mineral_copper.png"},
- is_ground_content = true,
groups = {cracky=2},
drop = 'default:copper_lump',
sounds = default.node_sound_stone_defaults(),
minetest.register_node("default:copperblock", {
description = "Copper Block",
tiles = {"default_copper_block.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:bronzeblock", {
description = "Bronze Block",
tiles = {"default_bronze_block.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=1,level=2},
sounds = default.node_sound_stone_defaults(),
})
description = "Mese Ore",
tiles = {"default_stone.png^default_mineral_mese.png"},
paramtype = "light",
- is_ground_content = true,
groups = {cracky = 1},
drop = "default:mese_crystal",
sounds = default.node_sound_stone_defaults(),
description = "Mese Block",
tiles = {"default_mese_block.png"},
paramtype = "light",
- is_ground_content = true,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
light_source = 3,
minetest.register_node("default:stone_with_gold", {
description = "Gold Ore",
tiles = {"default_stone.png^default_mineral_gold.png"},
- is_ground_content = true,
groups = {cracky=2},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults(),
minetest.register_node("default:goldblock", {
description = "Gold Block",
tiles = {"default_gold_block.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_diamond", {
description = "Diamond Ore",
tiles = {"default_stone.png^default_mineral_diamond.png"},
- is_ground_content = true,
groups = {cracky=1},
drop = "default:diamond",
sounds = default.node_sound_stone_defaults(),
minetest.register_node("default:diamondblock", {
description = "Diamond Block",
tiles = {"default_diamond_block.png"},
- is_ground_content = true,
+ is_ground_content = false,
groups = {cracky=1,level=3},
sounds = default.node_sound_stone_defaults(),
})
description = "Cactus",
tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_side.png"},
paramtype2 = "facedir",
- is_ground_content = true,
groups = {snappy=1,choppy=3,flammable=2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node,
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- is_ground_content = true,
buildable_to = true,
groups = {snappy=3,flammable=3,attached_node=1},
sounds = default.node_sound_leaves_defaults(),
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- is_ground_content = true,
groups = {snappy=3,flammable=2,flora=1,attached_node=1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
paramtype = "light",
sunlight_propagates = true,
walkable = false,
- is_ground_content = true,
buildable_to = true,
groups = {snappy=3,flammable=3,flora=1,attached_node=1},
sounds = default.node_sound_leaves_defaults(),
sunlight_propagates = true,
walkable = false,
buildable_to = true,
- is_ground_content = true,
drop = "default:grass_1",
groups = {snappy=3,flammable=3,flora=1,attached_node=1,not_in_creative_inventory=1},
sounds = default.node_sound_leaves_defaults(),
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
- post_effect_color = {a=64, r=100, g=100, b=200},
+ post_effect_color = {a=120, r=30, g=60, b=90},
groups = {water=3, liquid=3, puts_out_fire=1},
})
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
- post_effect_color = {a=64, r=100, g=100, b=200},
+ post_effect_color = {a=120, r=30, g=60, b=90},
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
})
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 2,
- post_effect_color = {a=64, r=100, g=178, b=200},
+ post_effect_color = {a=120, r=30, g=76, b=90},
groups = {water=3, liquid=3, puts_out_fire=1},
})
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 2,
- post_effect_color = {a=64, r=100, g=178, b=200},
+ post_effect_color = {a=120, r=30, g=76, b=90},
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
})
"list[current_name;main;0,0.3;8,4;]"..
"list[current_player;main;0,4.85;8,1;]"..
"list[current_player;main;0,6.08;8,3;8]"..
+ "listring[current_name;main]"..
+ "listring[current_player;main]"..
default.get_hotbar_bg(0,4.85)
local function get_locked_chest_formspec(pos)
"list[nodemeta:".. spos .. ";main;0,0.3;8,4;]"..
"list[current_player;main;0,4.85;8,1;]"..
"list[current_player;main;0,6.08;8,3;8]"..
+ "listring[nodemeta:".. spos .. ";main]"..
+ "listring[current_player;main]"..
default.get_hotbar_bg(0,4.85)
return formspec
end
"list[context;books;0,0.3;8,2;]"..
"list[current_player;main;0,2.85;8,1;]"..
"list[current_player;main;0,4.08;8,3;8]"..
+ "listring[context;books]"..
+ "listring[current_player;main]"..
default.get_hotbar_bg(0,2.85)
minetest.register_node("default:bookshelf", {
local stack = inv:get_stack(from_list, from_index)
local to_stack = inv:get_stack(to_list, to_index)
if to_list == "books" then
- if stack:get_name() == "default:book" and to_stack:is_empty() then
+ if minetest.get_item_group(stack:get_name(), "book") ~= 0
+ and to_stack:is_empty() then
return 1
else
return 0
minetest.register_node("default:cloud", {
description = "Cloud",
tiles = {"default_cloud.png"},
+ is_ground_content = false,
sounds = default.node_sound_defaults(),
groups = {not_in_creative_inventory=1},
})