Created
November 2, 2012 09:04
-
-
Save xyzz/3999617 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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