]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - builtin/client/cheats.lua
UI Update; Added AutoTool
[dragonfireclient.git] / builtin / client / cheats.lua
index 17347b8aecc84f2cf91b0c0c7a755def22d9499a..839021ad2726a687c7b4b1a022582cbd16d45689 100644 (file)
@@ -3,10 +3,9 @@ core.cheats = {
                ["Killaura"] = "killaura",
                ["AntiKnockback"] = "antiknockback",
                ["NoFallDamage"] = "prevent_natural_damage",
-               ["AutoRespawn"] = "autorespawn",
        },
        ["Movement"] = {
-               ["DragonRider"] = "entity_speed",
+               ["GodMode"] = "entity_speed",
                ["Freecam"] = "freecam",
                ["PrivBypass"] = "priv_bypass",
                ["AutoForward"] = "continuous_forward",
@@ -21,6 +20,7 @@ core.cheats = {
                ["NoHurtCam"] = "no_hurt_cam",
                ["BrightNight"] = "no_night",
                ["Coords"] = "coords",
+               ["Clouds"] = "enable_clouds",
        },
        ["World"] = {
                ["FastDig"] = "fastdig",
@@ -30,12 +30,11 @@ core.cheats = {
                ["InstantBreak"] = "instant_break",
                ["IncreasedRange"] = "increase_tool_range",
                ["UnlimitedRange"] = "increase_tool_range_plus",
-               ["Scaffold"] = "scaffold",
-               ["Highway"] = "highway",
+               ["PointLiquids"] = "point_liquids",
        },
-       ["Misc"] = {
-               ["Enderchest"] = function()
-                       minetest.open_special_inventory()
-               end,
-       }
 }
+
+function core.register_cheat(cheatname, category, func)
+       core.cheats[category] = core.cheats[category] or {}
+       core.cheats[category][cheatname] = func
+end