This commit is contained in:
chmodsayshello 2022-10-22 16:45:15 +00:00
parent 6c4ef3d96a
commit 4b88dfe7b7
1 changed files with 3 additions and 2 deletions

View File

@ -205,7 +205,8 @@ minetest.register_craftitem("the_bridge:knockback_stick",{
if not pointed_thing then return end
if not minetest.is_player(pointed_thing.ref) then return end
dir = user:get_look_dir()
dir.y = dir.y+1
pointed_thing.ref:add_player_velocity(vector.multiply(dir,16))
vel_vector = vector.multiply(dir,16)
vel_vector.y = (dir.y+1)*8
pointed_thing.ref:add_player_velocity(vel_vector)
end,
})