forked from VoxeLibre/VoxeLibre
Added setting for menu
This commit is contained in:
parent
2ceeb1fdc8
commit
8906e57f33
|
@ -33,6 +33,8 @@ local elytra_vars = {
|
||||||
rocket_speed = tonumber(minetest.settings:get("mcl_elytra_rocket_speed")) or 3.5, --was 5.5
|
rocket_speed = tonumber(minetest.settings:get("mcl_elytra_rocket_speed")) or 3.5, --was 5.5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local inside_liquid_leeway = tonumber(minetest.settings:get("vl_inside_liquid_leeway")) or 0.06
|
||||||
|
|
||||||
--minetest.log("action", "elytra_vars.max_speed: " .. dump(elytra_vars.max_speed))
|
--minetest.log("action", "elytra_vars.max_speed: " .. dump(elytra_vars.max_speed))
|
||||||
--minetest.log("action", "elytra_vars.rocket_speed: " .. dump(elytra_vars.rocket_speed))
|
--minetest.log("action", "elytra_vars.rocket_speed: " .. dump(elytra_vars.rocket_speed))
|
||||||
|
|
||||||
|
@ -185,7 +187,6 @@ local function get_head_submerged_node(head_pos)
|
||||||
-- Would be better if this were implemented in minetest i.e. players climbing outside of liquids
|
-- Would be better if this were implemented in minetest i.e. players climbing outside of liquids
|
||||||
local pos_origin = vector.round(head_pos)--{x=math.floor(head_pos.x + 0.5), y=head_pos.y, z=math.floor(head_pos.z + 0.5)}
|
local pos_origin = vector.round(head_pos)--{x=math.floor(head_pos.x + 0.5), y=head_pos.y, z=math.floor(head_pos.z + 0.5)}
|
||||||
-- Amount in nodes to allow player to be inside liquid without being inside liquid
|
-- Amount in nodes to allow player to be inside liquid without being inside liquid
|
||||||
local inside_liquid_leeway = 0.06
|
|
||||||
local adjacent_liquid
|
local adjacent_liquid
|
||||||
if head_pos.x - pos_origin.x > 0.5 - inside_liquid_leeway then
|
if head_pos.x - pos_origin.x > 0.5 - inside_liquid_leeway then
|
||||||
adjacent_liquid = flowlib.liquid_at_exact({x=pos_origin.x+1, y=pos_origin.y, z=pos_origin.z}, {x=-0.5, y=head_pos.y - pos_origin.y, z=0})
|
adjacent_liquid = flowlib.liquid_at_exact({x=pos_origin.x+1, y=pos_origin.y, z=pos_origin.z}, {x=-0.5, y=head_pos.y - pos_origin.y, z=0})
|
||||||
|
|
|
@ -113,6 +113,10 @@ mcl_eating_delay (Eating delay) float 1.61 0
|
||||||
# Default: 10
|
# Default: 10
|
||||||
vl_breath_max (Maximum breath) int 10 0
|
vl_breath_max (Maximum breath) int 10 0
|
||||||
|
|
||||||
|
# Breathable outside width of water columns
|
||||||
|
# Default: 10
|
||||||
|
vl_inside_liquid_leeway (Water column leeway) float 0.06 0
|
||||||
|
|
||||||
[Mobs]
|
[Mobs]
|
||||||
# If enabled, mobs will spawn naturally. This does not affect
|
# If enabled, mobs will spawn naturally. This does not affect
|
||||||
# affect mob spawners.
|
# affect mob spawners.
|
||||||
|
|
Loading…
Reference in New Issue