Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- minetest.register_chatcommand("sit", {
- params = "",
- description = "Sit command.",
- func = function(name, param)
- local player = minetest.get_player_by_name(name)
- if not player then
- return false, "Player not found"
- end
- default.player_set_animation(player, "sit", 30)
- --player:set_eye_offset({x=0,y=-5,z=0},{x=0,y=0,z=0})
- return true, "You are sitting now."
- end,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement