mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Scripting WIP: dynamic object stuff
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user