Upload the mod

This commit is contained in:
debiankaios 2022-02-18 18:44:20 +01:00
parent 0a090ff923
commit c68d0705db
3 changed files with 18 additions and 0 deletions

16
init.lua Normal file
View File

@ -0,0 +1,16 @@
--TODO: other physics-speed-manipulator(e.g. crystallshoes) manipulate but it not work because it is all the time at 0.4 or 1. But you should walk only 40% of normalvelocity.
minetest.register_globalstep(function(dtime)
for _,player in ipairs(minetest.get_connected_players()) do
local name = player:get_player_name()
if minetest.get_node(player:get_pos()).name == "default:water_source" then
player:set_physics_override({
speed = 0.4
})
else
player:set_physics_override({
speed = 1
})
end
end
end)

2
mod.conf Normal file
View File

@ -0,0 +1,2 @@
name = slower_in_liquid
depends = default