Skip to content

Instantly share code, notes, and snippets.

@rubenwardy
Last active August 29, 2015 14:25
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 rubenwardy/19a6e332f86431e6f45e to your computer and use it in GitHub Desktop.
Save rubenwardy/19a6e332f86431e6f45e to your computer and use it in GitHub Desktop.
all immortal
-- Make all blocks undiggable
for name, reg in pairs(minetest.registered_nodes) do
print("making " .. name .. " immortal 2")
reg.groups = reg.groups or {}
reg.groups.crumbly = nil
reg.groups.cracky = nil
reg.groups.snappy = nil
reg.groups.choppy = nil
reg.groups.fleshy = nil
reg.groups.explody = nil
reg.groups.dig_immediate = nil
reg.groups.oddly_breakable_by_hand = nil
reg.groups.immortal = 1
minetest.register_node(":" .. name, reg)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment