Skip to content

Instantly share code, notes, and snippets.

@xyzz
Created November 2, 2012 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyzz/3999617 to your computer and use it in GitHub Desktop.
Save xyzz/3999617 to your computer and use it in GitHub Desktop.
minetest.register_entity("entitytest:test", {
sticky = true,
on_activate = function(self, staticdata, dtime_s)
print("on_activate")
self.object:setvelocity({x = 5, y = 0, z = 0})
end,
on_step = function(self, dtime)
print("imma at "..dump(self.object:getpos()))
end,
get_staticdata = function(self)
print("get_staticdata called!")
end
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment