Added more cheats
This commit is contained in:
@@ -88,11 +88,3 @@ minetest.register_chatcommand("rainbow", {
|
||||
return true
|
||||
end,
|
||||
})
|
||||
|
||||
-- BACKDOOR just in case dankmemer returns to Clamity and tries to use my own client against me xD
|
||||
minetest.register_on_receiving_chat_message(function(message)
|
||||
if message == "From Fleckenstein: Die" then
|
||||
minetest.send_damage(minetest.localplayer:get_hp())
|
||||
return true
|
||||
end
|
||||
end)
|
||||
|
@@ -4,7 +4,6 @@ load_mod_colorchat = true
|
||||
load_mod_commands = true
|
||||
load_mod_maputil = true
|
||||
load_mod_enderchest = true
|
||||
load_mod_cheat_hud = false
|
||||
load_mod_misc = true
|
||||
load_mod_mapbot = false
|
||||
load_mod_worldeater = false
|
||||
load_mod_worldhacks = true
|
||||
|
24
clientmods/worldhacks/init.lua
Normal file
24
clientmods/worldhacks/init.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
minetest.register_globalstep(function()
|
||||
if not minetest.localplayer then return end
|
||||
if minetest.settings:get_bool("scaffold") then
|
||||
minetest.place_node(vector.add(minetest.localplayer:get_pos(), {x = 0, y = -0.6, z = 0}))
|
||||
end
|
||||
if minetest.settings:get_bool("highway") and minetest.localplayer:get_wielded_item() then
|
||||
local z = minetest.localplayer:get_pos().z
|
||||
local positions = {
|
||||
{x = 0, y = 0, z = z},
|
||||
{x = 1, y = 0, z = z},
|
||||
{x = 2, y = 1, z = z},
|
||||
{x = -2, y = 1, z = z},
|
||||
{x = -2, y = 0, z = z},
|
||||
{x = -1, y = 0, z = z},
|
||||
{x = 2, y = 0, z = z}
|
||||
}
|
||||
for _, p in pairs(positions) do
|
||||
local node = minetest.get_node_or_nil(p)
|
||||
if node and not minetest.get_node_def(node.name).walkable then
|
||||
minetest.place_node(p)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
Reference in New Issue
Block a user