aboutsummaryrefslogtreecommitdiff
path: root/data/mods/experimental/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'data/mods/experimental/init.lua')
-rw-r--r--data/mods/experimental/init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/mods/experimental/init.lua b/data/mods/experimental/init.lua
index d180d4778..52a729a4a 100644
--- a/data/mods/experimental/init.lua
+++ b/data/mods/experimental/init.lua
@@ -2,6 +2,21 @@
-- Experimental things
--
+-- For testing random stuff
+
+function on_step(dtime)
+ -- print("experimental on_step")
+ --[[
+ print("celeron55 dir: "..dump(
+ minetest.env:get_player_by_name("celeron55"):get_look_dir()))
+ print("celeron55 pitch: "..dump(
+ minetest.env:get_player_by_name("celeron55"):get_look_pitch()))
+ print("celeron55 yaw: "..dump(
+ minetest.env:get_player_by_name("celeron55"):get_look_yaw()))
+ --]]
+end
+minetest.register_globalstep(on_step)
+
-- An example furnace-thing implemented in Lua
minetest.register_node("experimental:luafurnace", {