Merge branch 'master' of https://github.com/minetest/minetest_game
|
@ -31,6 +31,7 @@ function beds.register_bed(name, def)
|
|||
wield_image = def.wield_image,
|
||||
drawtype = "nodebox",
|
||||
tiles = def.tiles.bottom,
|
||||
use_texture_alpha = "clip",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
@ -150,6 +151,7 @@ function beds.register_bed(name, def)
|
|||
minetest.register_node(name .. "_top", {
|
||||
drawtype = "nodebox",
|
||||
tiles = def.tiles.top,
|
||||
use_texture_alpha = "clip",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
|
|
@ -463,6 +463,7 @@ function default.register_mesepost(name, def)
|
|||
},
|
||||
paramtype = "light",
|
||||
tiles = {def.texture, def.texture, post_texture_dark, post_texture_dark, post_texture, post_texture},
|
||||
use_texture_alpha = "opaque",
|
||||
light_source = default.LIGHT_MAX,
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
|
|
|
@ -2213,7 +2213,7 @@ minetest.register_node("default:water_source", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 191,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
|
@ -2258,7 +2258,7 @@ minetest.register_node("default:water_flowing", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 191,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
|
@ -2304,7 +2304,7 @@ minetest.register_node("default:river_water_source", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
|
@ -2354,7 +2354,7 @@ minetest.register_node("default:river_water_flowing", {
|
|||
},
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
use_texture_alpha = "blend",
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
|
@ -2578,6 +2578,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},
|
||||
|
@ -2799,6 +2800,7 @@ 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,
|
||||
|
@ -2811,6 +2813,7 @@ 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,
|
||||
|
|
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
@ -29,6 +29,7 @@ minetest.register_node("default:torch", {
|
|||
name = "default_torch_on_floor_animated.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
|
||||
}},
|
||||
use_texture_alpha = "clip",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
|
@ -81,6 +82,7 @@ minetest.register_node("default:torch_wall", {
|
|||
name = "default_torch_on_floor_animated.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
|
||||
}},
|
||||
use_texture_alpha = "clip",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
|
@ -105,6 +107,7 @@ minetest.register_node("default:torch_ceiling", {
|
|||
name = "default_torch_on_floor_animated.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.3}
|
||||
}},
|
||||
use_texture_alpha = "clip",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
|
|
|
@ -436,6 +436,7 @@ function doors.register(name, def)
|
|||
def.buildable_to = false
|
||||
def.selection_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
|
||||
def.collision_box = {type = "fixed", fixed = {-1/2,-1/2,-1/2,1/2,3/2,-6/16}}
|
||||
def.use_texture_alpha = "clip"
|
||||
|
||||
def.mesh = "door_a.obj"
|
||||
minetest.register_node(":" .. name .. "_a", def)
|
||||
|
@ -581,6 +582,7 @@ function doors.register_trapdoor(name, def)
|
|||
def.paramtype = "light"
|
||||
def.paramtype2 = "facedir"
|
||||
def.is_ground_content = false
|
||||
def.use_texture_alpha = "clip"
|
||||
|
||||
if def.protected then
|
||||
def.can_dig = can_dig_door
|
||||
|
|
|
@ -279,6 +279,7 @@ local waterlily_def = {
|
|||
tiles = {"flowers_waterlily.png", "flowers_waterlily_bottom.png"},
|
||||
inventory_image = "flowers_waterlily.png",
|
||||
wield_image = "flowers_waterlily.png",
|
||||
use_texture_alpha = "clip",
|
||||
liquids_pointable = true,
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
|
|
|
@ -63,6 +63,8 @@ end
|
|||
|
||||
function stairs.register_stair(subname, recipeitem, groups, images, description,
|
||||
sounds, worldaligntex)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
-- Set backface culling and world-aligned textures
|
||||
local stair_images = {}
|
||||
for i, image in ipairs(images) do
|
||||
|
@ -91,6 +93,7 @@ function stairs.register_stair(subname, recipeitem, groups, images, description,
|
|||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = stair_images,
|
||||
use_texture_alpha = src_def and src_def.use_texture_alpha,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
@ -162,6 +165,8 @@ end
|
|||
|
||||
function stairs.register_slab(subname, recipeitem, groups, images, description,
|
||||
sounds, worldaligntex)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
-- Set world-aligned textures
|
||||
local slab_images = {}
|
||||
for i, image in ipairs(images) do
|
||||
|
@ -186,6 +191,7 @@ function stairs.register_slab(subname, recipeitem, groups, images, description,
|
|||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = slab_images,
|
||||
use_texture_alpha = src_def and src_def.use_texture_alpha,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
@ -297,6 +303,8 @@ end
|
|||
|
||||
function stairs.register_stair_inner(subname, recipeitem, groups, images,
|
||||
description, sounds, worldaligntex, full_description)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
-- Set backface culling and world-aligned textures
|
||||
local stair_images = {}
|
||||
for i, image in ipairs(images) do
|
||||
|
@ -330,6 +338,7 @@ function stairs.register_stair_inner(subname, recipeitem, groups, images,
|
|||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = stair_images,
|
||||
use_texture_alpha = src_def and src_def.use_texture_alpha,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
@ -384,6 +393,8 @@ end
|
|||
|
||||
function stairs.register_stair_outer(subname, recipeitem, groups, images,
|
||||
description, sounds, worldaligntex, full_description)
|
||||
local src_def = minetest.registered_nodes[recipeitem]
|
||||
|
||||
-- Set backface culling and world-aligned textures
|
||||
local stair_images = {}
|
||||
for i, image in ipairs(images) do
|
||||
|
@ -417,6 +428,7 @@ function stairs.register_stair_outer(subname, recipeitem, groups, images,
|
|||
description = description,
|
||||
drawtype = "nodebox",
|
||||
tiles = stair_images,
|
||||
use_texture_alpha = src_def and src_def.use_texture_alpha,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
is_ground_content = false,
|
||||
|
|
|
@ -88,7 +88,8 @@ local function update_clouds()
|
|||
local n_speedz = nobj_speedz:get_2d({x = time, y = 0}) -- -1 to 1
|
||||
|
||||
for _, player in ipairs(minetest.get_connected_players()) do
|
||||
local humid = minetest.get_humidity(player:get_pos())
|
||||
-- Fallback to mid-value 50 for very old worlds
|
||||
local humid = minetest.get_humidity(player:get_pos()) or 50
|
||||
-- Default and classic density value is 0.4, make this happen
|
||||
-- at humidity midvalue 50 when n_density is at midvalue 0.5.
|
||||
-- density_max = 0.25 at humid = 0.
|
||||
|
|
|
@ -116,7 +116,7 @@ function xpanes.register_pane(name, def)
|
|||
groups = flatgroups,
|
||||
drop = "xpanes:" .. name .. "_flat",
|
||||
sounds = def.sounds,
|
||||
use_texture_alpha = def.use_texture_alpha or false,
|
||||
use_texture_alpha = def.use_texture_alpha and "blend" or "clip",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {{-1/2, -1/2, -1/32, 1/2, 1/2, 1/32}},
|
||||
|
@ -145,7 +145,7 @@ function xpanes.register_pane(name, def)
|
|||
groups = groups,
|
||||
drop = "xpanes:" .. name .. "_flat",
|
||||
sounds = def.sounds,
|
||||
use_texture_alpha = def.use_texture_alpha or false,
|
||||
use_texture_alpha = def.use_texture_alpha and "blend" or "clip",
|
||||
node_box = {
|
||||
type = "connected",
|
||||
fixed = {{-1/32, -1/2, -1/32, 1/32, 1/2, 1/32}},
|
||||
|
|