Add in even MORE to the "insane" feature and tweak the minetest.conf.example

master
Jordan Craige 2012-05-09 21:07:47 -04:00
parent 3f5815ba83
commit 11ca99f110
2 changed files with 12 additions and 2 deletions

View File

@ -36,4 +36,14 @@ minetest.register_on_newplayer(function(player)
player:get_inventory():add_item('main', 'nuke:tnt 99')
end
end)
minetest.register_on_punchnode(function(p, node)
if minetest.setting_getbool("insane") then
if node.name == "default:dirt" or "default:dirt_with_grass" or "default:stone" or "default:sand" then
minetest.env:remove_node(p)
minetest.env:add_entity(p, "nuke:tnt")
nodeupdate(p)
end
else
return true
end
end)

View File

@ -142,7 +142,7 @@
# Gives some stuff to players at the beginning
#give_initial_stuff = false
# Gives players a full inventory of TNT
#insanity = true
#insane = true
# New users need to input this password
#default_password =
# Available privileges: build, teleport, settime, privs, shout