diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-12 17:37:14 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:40 +0200 |
commit | 1320d07068f25ff23ea27e120983c006f75bec24 (patch) | |
tree | 3357de80e98ecdb045c31213a551eb93fe5250b9 /data/scripts | |
parent | 0b97ad838466ed44296a2c663b2dc034feb51f67 (diff) | |
download | minetest-1320d07068f25ff23ea27e120983c006f75bec24.tar.gz minetest-1320d07068f25ff23ea27e120983c006f75bec24.tar.bz2 minetest-1320d07068f25ff23ea27e120983c006f75bec24.zip |
Scripting WIP: dynamic object stuff
Diffstat (limited to 'data/scripts')
-rw-r--r-- | data/scripts/default.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/scripts/default.lua b/data/scripts/default.lua index 3ec6f8433..dcc58097b 100644 --- a/data/scripts/default.lua +++ b/data/scripts/default.lua @@ -162,6 +162,8 @@ end -- Called when object is punched function TNT:on_punch(hitter) print("TNT:on_punch()") + self.object:remove() + hitter:add_to_inventory("CraftItem testobject1 1") end -- Called when object is right-clicked |