Upload the mod
This commit is contained in:
parent
0a090ff923
commit
c68d0705db
|
@ -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)
|
Loading…
Reference in New Issue