The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Revised by Bytes Unlimited : June 14th 2017
minetest.register_chatcommand("dump", { | |
params = "", | |
description = "Dump all objects in the global table", | |
func = function() | |
print("_G has "..#_G.." elements") | |
for k,v in pairs(_G) do | |
if k~="_G" then | |
if type(v)=="string" or type(v)=="number" then | |
print("G["..k.."]="..v) | |
elseif type(v)=="table" then |