diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-11 20:50:09 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:39 +0200 |
commit | a6a1e6ed1a8de1294970a5af6ba992c38d4022b8 (patch) | |
tree | f16285a594a3b55a3353e7fb97b2a22b56eed3ea /data/scripts | |
parent | f8430723e0c2d13470e430af2e4f4be5e64f82f3 (diff) | |
download | minetest-a6a1e6ed1a8de1294970a5af6ba992c38d4022b8.tar.gz minetest-a6a1e6ed1a8de1294970a5af6ba992c38d4022b8.tar.bz2 minetest-a6a1e6ed1a8de1294970a5af6ba992c38d4022b8.zip |
random scripting work-in-progress
Diffstat (limited to 'data/scripts')
-rw-r--r-- | data/scripts/default.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/data/scripts/default.lua b/data/scripts/default.lua index 22486ac5a..c525ecf1e 100644 --- a/data/scripts/default.lua +++ b/data/scripts/default.lua @@ -131,9 +131,10 @@ end print("omg lol") print("minetest dump: "..dump(minetest)) -minetest.register_object("a", "dummy string"); +minetest.register_entity("a", "dummy string"); -local TNT = minetest.new_entity { +--local TNT = minetest.new_entity { +local TNT = { -- Maybe handle gravity and collision this way? dunno physical = true, weight = 5, @@ -176,9 +177,9 @@ end print("TNT dump: "..dump(TNT)) print("Registering TNT"); -minetest.register_object("TNT", TNT) +minetest.register_entity("TNT", TNT) ---print("minetest.registered_objects: "..dump(minetest.registered_objects)) -print("minetest.registered_objects:") -serialize(minetest.registered_objects) +--print("minetest.registered_entities: "..dump(minetest.registered_entities)) +print("minetest.registered_entities:") +serialize(minetest.registered_entities) |