aboutsummaryrefslogtreecommitdiff
path: root/clientmods
diff options
context:
space:
mode:
Diffstat (limited to 'clientmods')
-rw-r--r--clientmods/colorchat/init.lua8
-rw-r--r--clientmods/mods.conf3
-rw-r--r--clientmods/worldhacks/init.lua24
3 files changed, 25 insertions, 10 deletions
diff --git a/clientmods/colorchat/init.lua b/clientmods/colorchat/init.lua
index f97332abb..66330063f 100644
--- a/clientmods/colorchat/init.lua
+++ b/clientmods/colorchat/init.lua
@@ -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)
diff --git a/clientmods/mods.conf b/clientmods/mods.conf
index c0feec9fb..94878b939 100644
--- a/clientmods/mods.conf
+++ b/clientmods/mods.conf
@@ -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
diff --git a/clientmods/worldhacks/init.lua b/clientmods/worldhacks/init.lua
new file mode 100644
index 000000000..e9b79bfd7
--- /dev/null
+++ b/clientmods/worldhacks/init.lua
@@ -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)