mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-21 15:37:46 +00:00

It's a command that moves the user forward, backward, up, or down a specified amount of yalms. It's quite helpful for exploration convenience, and doesn't replace setpos, rather, it's meant to complement it. The set_position function was also extended to allow for lua code to specify the rotation/direction facing.
4 lines
170 B
Lua
4 lines
170 B
Lua
function onCommand(args, player)
|
|
local parts = split(args)
|
|
player:set_position({ x = tonumber(parts[1]), y = tonumber(parts[2]), z = tonumber(parts[3]) }, 0)
|
|
end
|