mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Scripting WIP: dynamic object stuff
This commit is contained in:
parent
0b97ad8384
commit
1320d07068
11 changed files with 274 additions and 95 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue