mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Updated minetestforfun_game, part 3
- Merged : Removed weird constants in default Add tree growing functions to game_api.txt
This commit is contained in:
@ -774,7 +774,7 @@ minetest.register_node("default:water_flowing", {
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||
},
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
@ -786,7 +786,7 @@ minetest.register_node("default:water_flowing", {
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "default:water_flowing",
|
||||
liquid_alternative_source = "default:water_source",
|
||||
liquid_viscosity = WATER_VISC,
|
||||
liquid_viscosity = 1,
|
||||
freezemelt = "default:snow",
|
||||
post_effect_color = {a = 120, r = 20, g = 60, b = 80},
|
||||
groups = {water= 3, liquid = 3, puts_out_fire = 1, not_in_creative_inventory = 1, freezes = 1, melt_around = 1},
|
||||
@ -807,7 +807,7 @@ minetest.register_node("default:water_source", {
|
||||
backface_culling = false,
|
||||
}
|
||||
},
|
||||
alpha = WATER_ALPHA,
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
@ -818,7 +818,7 @@ minetest.register_node("default:water_source", {
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "default:water_flowing",
|
||||
liquid_alternative_source = "default:water_source",
|
||||
liquid_viscosity = WATER_VISC,
|
||||
liquid_viscosity = 1,
|
||||
freezemelt = "default:ice",
|
||||
post_effect_color = {a = 120, r = 20, g = 60, b = 80},
|
||||
groups = {water= 3, liquid = 3, puts_out_fire = 1, freezes = 1},
|
||||
@ -906,7 +906,7 @@ minetest.register_node("default:lava_flowing", {
|
||||
},
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
@ -916,7 +916,7 @@ minetest.register_node("default:lava_flowing", {
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "default:lava_flowing",
|
||||
liquid_alternative_source = "default:lava_source",
|
||||
liquid_viscosity = LAVA_VISC,
|
||||
liquid_viscosity = 7,
|
||||
liquid_renewable = false,
|
||||
damage_per_second = 8,
|
||||
post_effect_color = {a = 220, r = 250, g = 70, b = 20},
|
||||
@ -939,7 +939,7 @@ minetest.register_node("default:lava_source", {
|
||||
}
|
||||
},
|
||||
paramtype = "light",
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX - 1,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
@ -949,7 +949,7 @@ minetest.register_node("default:lava_source", {
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "default:lava_flowing",
|
||||
liquid_alternative_source = "default:lava_source",
|
||||
liquid_viscosity = LAVA_VISC,
|
||||
liquid_viscosity = 7,
|
||||
liquid_renewable = false,
|
||||
damage_per_second = 8,
|
||||
post_effect_color = {a = 220, r = 250, g = 70, b = 20},
|
||||
|
@ -45,7 +45,7 @@ minetest.register_abm({
|
||||
|
||||
minetest.log("action", "A jungle sapling grows into a tree at "..
|
||||
minetest.pos_to_string(pos))
|
||||
default.grow_jungletree(pos)
|
||||
default.grow_jungle_tree(pos)
|
||||
end
|
||||
})
|
||||
|
||||
@ -60,7 +60,7 @@ minetest.register_abm({
|
||||
|
||||
minetest.log("action", "A pine sapling grows into a tree at "..
|
||||
minetest.pos_to_string(pos))
|
||||
default.grow_pinetree(pos)
|
||||
default.grow_pine_tree(pos)
|
||||
end
|
||||
})
|
||||
|
||||
@ -157,14 +157,14 @@ end
|
||||
|
||||
-- Jungletree
|
||||
|
||||
function default.grow_jungletree(pos, bad)
|
||||
function default.grow_jungle_tree(pos, bad)
|
||||
--[[
|
||||
NOTE: Jungletree-placing code is currently duplicated in the engine
|
||||
and in games that have saplings; both are deprecated but not
|
||||
replaced yet
|
||||
--]]
|
||||
if bad then
|
||||
error("Deprecated use of default.grow_jungletree")
|
||||
error("Deprecated use of default.grow_jungle_tree")
|
||||
end
|
||||
|
||||
local x, y, z = pos.x, pos.y, pos.z
|
||||
@ -220,7 +220,7 @@ local function add_snow(data, vi, c_air, c_ignore, c_snow)
|
||||
end
|
||||
end
|
||||
|
||||
function default.grow_pinetree(pos)
|
||||
function default.grow_pinet_ree(pos)
|
||||
local x, y, z = pos.x, pos.y, pos.z
|
||||
local maxy = y + random(9, 13) -- Trunk top
|
||||
|
||||
@ -340,4 +340,4 @@ function default.grow_pinetree(pos)
|
||||
vm:set_data(data)
|
||||
vm:write_to_map()
|
||||
vm:update_map()
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user