Skip to content

Instantly share code, notes, and snippets.

@rud01f

rud01f/tnt.lua Secret

Created April 2, 2018 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rud01f/abc83f3d1531b8f2177ac228d4c29a17 to your computer and use it in GitHub Desktop.
Save rud01f/abc83f3d1531b8f2177ac228d4c29a17 to your computer and use it in GitHub Desktop.
local old_tnt_place = minetest.registered_items["tnt:tnt"].on_place;
minetest.override_item("tnt:tnt", {
on_place = function(itemstack, placer, pointed_thing)
-- do some stuff
return old_tnt_place(itemstack, placer, pointed_thing)
end,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment