initial commit

This commit is contained in:
Niwla23 2019-05-07 21:58:51 +02:00
commit d7ae0c525c
2 changed files with 22 additions and 0 deletions

21
init.lua Normal file

@ -0,0 +1,21 @@
controls.register_on_press(function(player, key)
if key == "sneak" then
player:set_properties({
visual_size = {x = 1, y = 0.9},
collisionbox = {-0.3, 0.0, -0.3, 0.5, 1.7, 0.3},
stepheight = 0.5,
eye_height = 1.3,
})
end
end)
controls.register_on_release(function(player, key)
if key == "sneak" then
player:set_properties({
visual_size = {x = 1, y = 1},
collisionbox = {-0.3, 0.0, -0.3, 0.5, 1.7, 0.3},
stepheight = 0.6,
eye_height = 1.47,
})
end
end)

1
mod.conf Normal file

@ -0,0 +1 @@
depends=controls