aboutsummaryrefslogtreecommitdiff
path: root/data/scripts/default.lua
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-12 17:46:06 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:40 +0200
commit73bb3bc5958989db21eefb826e277dada248ceca (patch)
tree1d87277d92ff54fdc32cfd735934b11ec182a69a /data/scripts/default.lua
parent1320d07068f25ff23ea27e120983c006f75bec24 (diff)
downloadminetest-73bb3bc5958989db21eefb826e277dada248ceca.tar.gz
minetest-73bb3bc5958989db21eefb826e277dada248ceca.tar.bz2
minetest-73bb3bc5958989db21eefb826e277dada248ceca.zip
Scripting WIP: Add global environment step function on_step
Diffstat (limited to 'data/scripts/default.lua')
-rw-r--r--data/scripts/default.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/scripts/default.lua b/data/scripts/default.lua
index dcc58097b..4197cd788 100644
--- a/data/scripts/default.lua
+++ b/data/scripts/default.lua
@@ -138,7 +138,10 @@ end
print("omg lol")
print("minetest dump: "..dump(minetest))
---local TNT = minetest.new_entity {
+-- Global environment step function
+function on_step(dtime)
+end
+
local TNT = {
-- Maybe handle gravity and collision this way? dunno
physical = true,