mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Add teleport calculator
This commit is contained in:
parent
049f9e8958
commit
ee930101d4
7
teleport_calc.lua
Normal file
7
teleport_calc.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
-- Teleport Calculator
|
||||
function teleport_calc(dis,item)
|
||||
if(item==nil) then item=40 end
|
||||
local ret=(1000+100*item)*math.pow(dis+10,0.7)
|
||||
print("Teleport Steve with " .. item .. " items to " .. dis .. " m away needs " .. getEUStr(ret))
|
||||
return ret
|
||||
end
|
Loading…
Reference in New Issue
Block a user