Files
VoxelEngine/res/content/base/scripts/drop.lua
T

12 lines
208 B
Lua

function on_spawn(eid)
print("spawn", eid)
end
function on_despawn(eid)
print("despawn", eid)
end
function on_grounded(eid)
Transform.set_rot(eid, mat4.rotate({0, 1, 0}, math.random()*360))
end