merge upstream
This commit is contained in:
commit
f3be63d874
697 changed files with 8307 additions and 2471 deletions
|
@ -180,6 +180,9 @@ default:sand_with_kelp
|
|||
Corals
|
||||
------
|
||||
|
||||
default:coral_green
|
||||
default:coral_pink
|
||||
default:coral_cyan
|
||||
default:coral_brown
|
||||
default:coral_orange
|
||||
default:coral_skeleton
|
||||
|
@ -214,6 +217,12 @@ default:fence_junglewood
|
|||
default:fence_pine_wood
|
||||
default:fence_aspen_wood
|
||||
|
||||
default:fence_rail_wood
|
||||
default:fence_rail_acacia_wood
|
||||
default:fence_rail_junglewood
|
||||
default:fence_rail_pine_wood
|
||||
default:fence_rail_aspen_wood
|
||||
|
||||
default:glass
|
||||
default:obsidian_glass
|
||||
|
||||
|
@ -683,7 +692,7 @@ minetest.register_node("default:ice", {
|
|||
is_ground_content = false,
|
||||
paramtype = "light",
|
||||
groups = {cracky = 3, cools_lava = 1, slippery = 3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_ice_defaults(),
|
||||
})
|
||||
|
||||
-- Mapgen-placed ice with 'is ground content = true' to contain tunnels
|
||||
|
@ -694,7 +703,7 @@ minetest.register_node("default:cave_ice", {
|
|||
groups = {cracky = 3, cools_lava = 1, slippery = 3,
|
||||
not_in_creative_inventory = 1},
|
||||
drop = "default:ice",
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = default.node_sound_ice_defaults(),
|
||||
})
|
||||
|
||||
--
|
||||
|
@ -819,6 +828,8 @@ minetest.register_node("default:apple", {
|
|||
|
||||
minetest.register_node("default:apple_mark", {
|
||||
description = S("Apple Marker"),
|
||||
inventory_image = "default_apple.png^default_invisible_node_overlay.png",
|
||||
wield_image = "default_apple.png^default_invisible_node_overlay.png",
|
||||
drawtype = "airlike",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
|
@ -1471,7 +1482,7 @@ minetest.register_node("default:junglegrass", {
|
|||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, flammable = 1},
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1, junglegrass = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -1492,7 +1503,8 @@ minetest.register_node("default:grass_1", {
|
|||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1, flammable = 1},
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1, grass = 1,
|
||||
normal_grass = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -1522,7 +1534,8 @@ for i = 2, 5 do
|
|||
buildable_to = true,
|
||||
drop = "default:grass_1",
|
||||
groups = {snappy = 3, flora = 1, attached_node = 1,
|
||||
not_in_creative_inventory = 1, grass = 1, flammable = 1},
|
||||
not_in_creative_inventory = 1, grass = 1,
|
||||
normal_grass = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -1544,7 +1557,7 @@ minetest.register_node("default:dry_grass_1", {
|
|||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flammable = 3, flora = 1,
|
||||
attached_node = 1, dry_grass = 1},
|
||||
attached_node = 1, grass = 1, dry_grass = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -1573,7 +1586,7 @@ for i = 2, 5 do
|
|||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1,
|
||||
not_in_creative_inventory=1, dry_grass = 1},
|
||||
not_in_creative_inventory = 1, grass = 1, dry_grass = 1},
|
||||
drop = "default:dry_grass_1",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
|
@ -1595,7 +1608,8 @@ minetest.register_node("default:fern_1", {
|
|||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
|
||||
groups = {snappy = 3, flammable = 3, flora = 1, grass = 1,
|
||||
fern = 1, attached_node = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -1625,7 +1639,7 @@ for i = 2, 3 do
|
|||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1,
|
||||
not_in_creative_inventory=1},
|
||||
grass = 1, fern = 1, not_in_creative_inventory = 1},
|
||||
drop = "default:fern_1",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
|
@ -1647,7 +1661,8 @@ minetest.register_node("default:marram_grass_1", {
|
|||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flammable = 3, attached_node = 1},
|
||||
groups = {snappy = 3, flammable = 3, flora = 1, grass = 1, marram_grass = 1,
|
||||
attached_node = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -1675,8 +1690,8 @@ for i = 2, 3 do
|
|||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
groups = {snappy = 3, flammable = 3, attached_node = 1,
|
||||
not_in_creative_inventory=1},
|
||||
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1,
|
||||
grass = 1, marram_grass = 1, not_in_creative_inventory = 1},
|
||||
drop = "default:marram_grass_1",
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
|
@ -1707,7 +1722,6 @@ minetest.register_node("default:bush_stem", {
|
|||
minetest.register_node("default:bush_leaves", {
|
||||
description = S("Bush Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
tiles = {"default_leaves_simple.png"},
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1},
|
||||
|
@ -1761,7 +1775,6 @@ minetest.register_node("default:bush_sapling", {
|
|||
minetest.register_node("default:blueberry_bush_leaves_with_berries", {
|
||||
description = S("Blueberry Bush Leaves with Berries"),
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
tiles = {"default_blueberry_bush_leaves.png^default_blueberry_overlay.png"},
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1, dig_immediate = 3},
|
||||
|
@ -1778,7 +1791,6 @@ minetest.register_node("default:blueberry_bush_leaves_with_berries", {
|
|||
minetest.register_node("default:blueberry_bush_leaves", {
|
||||
description = S("Blueberry Bush Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
tiles = {"default_blueberry_bush_leaves.png"},
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1},
|
||||
|
@ -1857,7 +1869,6 @@ minetest.register_node("default:acacia_bush_stem", {
|
|||
minetest.register_node("default:acacia_bush_leaves", {
|
||||
description = S("Acacia Bush Leaves"),
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
tiles = {"default_acacia_leaves_simple.png"},
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1},
|
||||
|
@ -1928,7 +1939,6 @@ minetest.register_node("default:pine_bush_stem", {
|
|||
minetest.register_node("default:pine_bush_needles", {
|
||||
description = S("Pine Bush Needles"),
|
||||
drawtype = "allfaces_optional",
|
||||
waving = 1,
|
||||
tiles = {"default_pine_needles.png"},
|
||||
paramtype = "light",
|
||||
groups = {snappy = 3, flammable = 2, leaves = 1},
|
||||
|
@ -1979,6 +1989,7 @@ minetest.register_node("default:pine_bush_sapling", {
|
|||
end,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("default:sand_with_kelp", {
|
||||
description = S("Kelp"),
|
||||
drawtype = "plantlike_rooted",
|
||||
|
@ -1986,6 +1997,7 @@ minetest.register_node("default:sand_with_kelp", {
|
|||
tiles = {"default_sand.png"},
|
||||
special_tiles = {{name = "default_kelp.png", tileable_vertical = true}},
|
||||
inventory_image = "default_kelp.png",
|
||||
wield_image = "default_kelp.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "leveled",
|
||||
groups = {snappy = 3},
|
||||
|
@ -2032,8 +2044,7 @@ minetest.register_node("default:sand_with_kelp", {
|
|||
not minetest.is_protected(pos_top, player_name) then
|
||||
minetest.set_node(pos, {name = "default:sand_with_kelp",
|
||||
param2 = height * 16})
|
||||
if not (creative and creative.is_enabled_for
|
||||
and creative.is_enabled_for(player_name)) then
|
||||
if not minetest.is_creative_enabled(player_name) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
else
|
||||
|
@ -2078,17 +2089,16 @@ local function coral_on_place(itemstack, placer, pointed_thing)
|
|||
|
||||
if minetest.is_protected(pos_under, player_name) or
|
||||
minetest.is_protected(pos_above, player_name) then
|
||||
minetest.log("action", player_name
|
||||
.. " tried to place " .. itemstack:get_name()
|
||||
.. " at protected position "
|
||||
.. minetest.pos_to_string(pos_under))
|
||||
default.log_player_action(placer,
|
||||
"tried to place", itemstack:get_name(),
|
||||
"at protected position", pos_under)
|
||||
minetest.record_protection_violation(pos_under, player_name)
|
||||
return itemstack
|
||||
end
|
||||
|
||||
node_under.name = itemstack:get_name()
|
||||
minetest.set_node(pos_under, node_under)
|
||||
if not (creative and creative.is_enabled_for(player_name)) then
|
||||
if not minetest.is_creative_enabled(player_name) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
|
||||
|
@ -2103,6 +2113,7 @@ minetest.register_node("default:coral_green", {
|
|||
tiles = {"default_coral_skeleton.png"},
|
||||
special_tiles = {{name = "default_coral_green.png", tileable_vertical = true}},
|
||||
inventory_image = "default_coral_green.png",
|
||||
wield_image = "default_coral_green.png",
|
||||
groups = {snappy = 3},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -2133,6 +2144,7 @@ minetest.register_node("default:coral_pink", {
|
|||
tiles = {"default_coral_skeleton.png"},
|
||||
special_tiles = {{name = "default_coral_pink.png", tileable_vertical = true}},
|
||||
inventory_image = "default_coral_pink.png",
|
||||
wield_image = "default_coral_pink.png",
|
||||
groups = {snappy = 3},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -2163,6 +2175,7 @@ minetest.register_node("default:coral_cyan", {
|
|||
tiles = {"default_coral_skeleton.png"},
|
||||
special_tiles = {{name = "default_coral_cyan.png", tileable_vertical = true}},
|
||||
inventory_image = "default_coral_cyan.png",
|
||||
wield_image = "default_coral_cyan.png",
|
||||
groups = {snappy = 3},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -2239,7 +2252,7 @@ minetest.register_node("default:water_source", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 191,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
|
@ -2284,7 +2297,7 @@ minetest.register_node("default:water_flowing", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 191,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
|
@ -2330,7 +2343,7 @@ minetest.register_node("default:river_water_source", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
|
@ -2380,7 +2393,7 @@ minetest.register_node("default:river_water_flowing", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
|
@ -2543,7 +2556,7 @@ local function update_bookshelf(pos)
|
|||
end
|
||||
end
|
||||
|
||||
minetest.register_node("default:bookshelf", {
|
||||
local default_bookshelf_def = {
|
||||
description = S("Bookshelf"),
|
||||
tiles = {"default_wood.png", "default_wood.png", "default_wood.png",
|
||||
"default_wood.png", "default_bookshelf.png", "default_bookshelf.png"},
|
||||
|
@ -2568,21 +2581,6 @@ minetest.register_node("default:bookshelf", {
|
|||
end
|
||||
return 0
|
||||
end,
|
||||
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" moves stuff in bookshelf at " .. minetest.pos_to_string(pos))
|
||||
update_bookshelf(pos)
|
||||
end,
|
||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" puts stuff to bookshelf at " .. minetest.pos_to_string(pos))
|
||||
update_bookshelf(pos)
|
||||
end,
|
||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
minetest.log("action", player:get_player_name() ..
|
||||
" takes stuff from bookshelf at " .. minetest.pos_to_string(pos))
|
||||
update_bookshelf(pos)
|
||||
end,
|
||||
on_blast = function(pos)
|
||||
local drops = {}
|
||||
default.get_inventory_drops(pos, "books", drops)
|
||||
|
@ -2590,7 +2588,9 @@ minetest.register_node("default:bookshelf", {
|
|||
minetest.remove_node(pos)
|
||||
return drops
|
||||
end,
|
||||
})
|
||||
}
|
||||
default.set_inventory_action_loggers(default_bookshelf_def, "bookshelf")
|
||||
minetest.register_node("default:bookshelf", default_bookshelf_def)
|
||||
|
||||
local function register_sign(material, desc, def)
|
||||
minetest.register_node("default:sign_wall_" .. material, {
|
||||
|
@ -2604,6 +2604,7 @@ local function register_sign(material, desc, def)
|
|||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
use_texture_alpha = "opaque",
|
||||
node_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
|
||||
|
@ -2632,8 +2633,8 @@ local function register_sign(material, desc, def)
|
|||
minetest.chat_send_player(player_name, S("Text too long"))
|
||||
return
|
||||
end
|
||||
minetest.log("action", player_name .. " wrote \"" .. text ..
|
||||
"\" to the sign at " .. minetest.pos_to_string(pos))
|
||||
default.log_player_action(sender, "wrote \"" .. text ..
|
||||
"\" to the sign at", pos)
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_string("text", text)
|
||||
|
||||
|
@ -2825,8 +2826,8 @@ minetest.register_node("default:glass", {
|
|||
description = S("Glass"),
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = {"default_glass.png", "default_glass_detail.png"},
|
||||
use_texture_alpha = "clip", -- only needed for stairs API
|
||||
paramtype = "light",
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 3},
|
||||
|
@ -2837,8 +2838,8 @@ minetest.register_node("default:obsidian_glass", {
|
|||
description = S("Obsidian Glass"),
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png"},
|
||||
use_texture_alpha = "clip", -- only needed for stairs API
|
||||
paramtype = "light",
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
is_ground_content = false,
|
||||
sunlight_propagates = true,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
@ -2878,7 +2879,7 @@ default.register_mesepost("default:mese_post_light", {
|
|||
material = "default:wood",
|
||||
})
|
||||
|
||||
default.register_mesepost("default:mese_post_light_acacia", {
|
||||
default.register_mesepost("default:mese_post_light_acacia_wood", {
|
||||
description = S("Acacia Wood Mese Post Light"),
|
||||
texture = "default_fence_acacia_wood.png",
|
||||
material = "default:acacia_wood",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue