default:water_source
default:water_flowing
+default:river_water_source
+default:river_water_flowing
+
default:lava_source
default:lava_flowing
default:brick
+default:meselamp
+
Misc
----
default:cloud
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:ice", {
description = "Ice",
tiles = {"default_ice.png"},
- is_ground_content = true,
+ is_ground_content = false,
paramtype = "light",
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
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(),
})
inventory_image = "default_sapling.png",
wield_image = "default_sapling.png",
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}
},
groups = {fleshy=3,dig_immediate=3,flammable=2,leafdecay=3,leafdecay_drop=1},
- on_use = minetest.item_eat(1),
+ on_use = minetest.item_eat(2),
sounds = default.node_sound_leaves_defaults(),
after_place_node = function(pos, placer, itemstack)
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(),
})
inventory_image = "default_junglesapling.png",
wield_image = "default_junglesapling.png",
paramtype = "light",
+ sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
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(),
})
minetest.register_node("default:stone_with_mese", {
description = "Mese Ore",
tiles = {"default_stone.png^default_mineral_mese.png"},
- is_ground_content = true,
- groups = {cracky=1},
+ paramtype = "light",
+ groups = {cracky = 1},
drop = "default:mese_crystal",
sounds = default.node_sound_stone_defaults(),
+ light_source = 1,
})
minetest.register_node("default:mese", {
description = "Mese Block",
tiles = {"default_mese_block.png"},
- is_ground_content = true,
- groups = {cracky=1,level=2},
+ paramtype = "light",
+ 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,
inventory_image = "default_papyrus.png",
wield_image = "default_papyrus.png",
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}
inventory_image = "default_dry_shrub.png",
wield_image = "default_dry_shrub.png",
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(),
inventory_image = "default_junglegrass.png",
wield_image = "default_junglegrass.png",
paramtype = "light",
+ 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 = {
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
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(),
inventory_image = "default_grass_"..i..".png",
wield_image = "default_grass_"..i..".png",
paramtype = "light",
+ 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(),
pointable = false,
diggable = false,
buildable_to = true,
+ is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
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},
})
pointable = false,
diggable = false,
buildable_to = true,
+ is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
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},
+})
+
+
+minetest.register_node("default:river_water_source", {
+ description = "River Water Source",
+ inventory_image = minetest.inventorycube("default_river_water.png"),
+ drawtype = "liquid",
+ tiles = {
+ {
+ name = "default_river_water_source_animated.png",
+ animation = {
+ type = "vertical_frames",
+ aspect_w = 16,
+ aspect_h = 16,
+ length = 2.0,
+ },
+ },
+ },
+ special_tiles = {
+ {
+ name = "default_river_water_source_animated.png",
+ animation = {
+ type = "vertical_frames",
+ aspect_w = 16,
+ aspect_h = 16,
+ length = 2.0,
+ },
+ backface_culling = false,
+ },
+ },
+ alpha = 160,
+ paramtype = "light",
+ walkable = false,
+ pointable = false,
+ diggable = false,
+ buildable_to = true,
+ is_ground_content = false,
+ drop = "",
+ drowning = 1,
+ liquidtype = "source",
+ liquid_alternative_flowing = "default:river_water_flowing",
+ liquid_alternative_source = "default:river_water_source",
+ liquid_viscosity = 1,
+ liquid_renewable = false,
+ liquid_range = 2,
+ post_effect_color = {a=120, r=30, g=76, b=90},
+ groups = {water=3, liquid=3, puts_out_fire=1},
+})
+
+minetest.register_node("default:river_water_flowing", {
+ description = "Flowing River Water",
+ inventory_image = minetest.inventorycube("default_river_water.png"),
+ drawtype = "flowingliquid",
+ tiles = {"default_river_water.png"},
+ special_tiles = {
+ {
+ name = "default_river_water_flowing_animated.png",
+ backface_culling = false,
+ animation = {
+ type = "vertical_frames",
+ aspect_w = 16,
+ aspect_h = 16,
+ length = 0.8,
+ },
+ },
+ {
+ name = "default_river_water_flowing_animated.png",
+ backface_culling = true,
+ animation = {
+ type = "vertical_frames",
+ aspect_w = 16,
+ aspect_h = 16,
+ length = 0.8,
+ },
+ },
+ },
+ alpha = 160,
+ paramtype = "light",
+ paramtype2 = "flowingliquid",
+ walkable = false,
+ pointable = false,
+ diggable = false,
+ buildable_to = true,
+ is_ground_content = false,
+ drop = "",
+ drowning = 1,
+ liquidtype = "flowing",
+ liquid_alternative_flowing = "default:river_water_flowing",
+ liquid_alternative_source = "default:river_water_source",
+ liquid_viscosity = 1,
+ liquid_renewable = false,
+ liquid_range = 2,
+ 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},
})
pointable = false,
diggable = false,
buildable_to = true,
+ is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
pointable = false,
diggable = false,
buildable_to = true,
+ is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
"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
)
end
end,
+ on_blast = function() 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
wield_image = "default_ladder.png",
paramtype = "light",
paramtype2 = "wallmounted",
+ sunlight_propagates = true,
walkable = false,
climbable = true,
is_ground_content = false,
inventory_image = fence_texture,
wield_image = fence_texture,
paramtype = "light",
+ sunlight_propagates = true,
is_ground_content = false,
selection_box = {
type = "fixed",
inventory_image = "default_rail.png",
wield_image = "default_rail.png",
paramtype = "light",
+ sunlight_propagates = true,
walkable = false,
is_ground_content = false,
selection_box = {
-- but how to specify the dimensions for curved and sideways rails?
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
- groups = {bendy=2,dig_immediate=2,attached_node=1},
+ groups = {bendy=2,dig_immediate=2,attached_node=1,connect_to_raillike=minetest.raillike_group("rail")},
})
sounds = default.node_sound_stone_defaults(),
})
+
+minetest.register_node("default:meselamp", {
+ description = "Mese Lamp",
+ drawtype = "glasslike",
+ tiles = {"default_meselamp.png"},
+ paramtype = "light",
+ sunlight_propagates = true,
+ is_ground_content = false,
+ groups = {cracky = 3, oddly_breakable_by_hand = 3},
+ sounds = default.node_sound_glass_defaults(),
+ light_source = default.LIGHT_MAX,
+})
+
--
-- Misc
--
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},
})