24 lines
648 B
Lua
24 lines
648 B
Lua
test.set_setting("chunks.load-distance", 3)
|
|
test.set_setting("chunks.load-speed", 1)
|
|
|
|
test.quit()
|
|
|
|
test.reconfig_packs({"base"}, {})
|
|
test.new_world("demo", "2019", "core:default")
|
|
local pid1 = player.create("Xerxes")
|
|
assert(player.get_name(pid) == "Xerxes")
|
|
|
|
local pid2 = player.create("Undefined")
|
|
|
|
for i=1,100 do
|
|
if i % 10 == 0 then
|
|
print(tostring(i).." % done")
|
|
print("chunks loaded", world.count_chunks())
|
|
end
|
|
player.set_pos(pid1, math.random() * 100 - 50, 100, math.random() * 100 - 50)
|
|
player.set_pos(pid2, math.random() * 200 - 100, 100, math.random() * 200 - 100)
|
|
test.tick()
|
|
end
|
|
|
|
test.close_world(true)
|