Evade should be working perfectly now.

Only thing left to do is make it so it doesn't spawn you inside rocks! For now you can to /tpj y 20 to recover  ;)
This commit is contained in:
Robbie Ferguson 2016-05-18 18:52:26 -04:00
parent a505e92faa
commit 704bc994e1

@ -255,6 +255,7 @@ end
-- Evade
local function tpe(player)
minetest.chat_send_player(sender, "EVADE!")
local mindistance = 4
local maxdistance = 15
local times = math.random(6,20) -- how many times to jump - minimum,maximum
@ -263,7 +264,7 @@ local function tpe(player)
local isnegative = ''
local distance = 0
local axis = ''
local iteration = 0.5
local iteration = 0
for i = 1,times do
-- do this every 1 second
minetest.after(iteration,