]> git.lizzy.rs Git - dragonfireclient.git/blob - builtin/client/cheats.lua
3a1f6b24a20797982cb949170e0ad335c846c78c
[dragonfireclient.git] / builtin / client / cheats.lua
1 core.cheats = {
2         ["Combat"] = {
3                 ["Killaura"] = "killaura",
4                 ["AntiKnockback"] = "antiknockback",
5                 ["NoFallDamage"] = "prevent_natural_damage",
6         },
7         ["Movement"] = {
8                 ["GodMode"] = "entity_speed",
9                 ["Freecam"] = "freecam",
10                 ["PrivBypass"] = "priv_bypass",
11                 ["AutoForward"] = "continuous_forward",
12                 ["PitchMove"] = "pitch_move",
13                 ["AutoJump"] = "autojump",
14                 ["Jesus"] = "jesus",
15         },
16         ["Render"] = {
17                 ["Xray"] = "xray",
18                 ["Fullbright"] = "fullbright",
19                 ["HUDBypass"] = "hud_flags_bypass",
20                 ["NoHurtCam"] = "no_hurt_cam",
21                 ["BrightNight"] = "no_night",
22                 ["Coords"] = "coords",
23         },
24         ["World"] = {
25                 ["FastDig"] = "fastdig",
26                 ["FastPlace"] = "fastplace",
27                 ["AutoDig"] = "autodig",
28                 ["AutoPlace"] = "autoplace",
29                 ["InstantBreak"] = "instant_break",
30                 ["IncreasedRange"] = "increase_tool_range",
31                 ["UnlimitedRange"] = "increase_tool_range_plus",
32                 ["PointLiquids"] = "point_liquids",
33         },
34         ["Misc"] = {
35                 ["Enderchest"] = function()
36                         minetest.open_special_inventory()
37                 end,
38         }
39 }
40
41 function core.register_cheat(cheatname, category, func)
42         core.cheats[category] = core.cheats[category] or {}
43         core.cheats[category][cheatname] = func
44 end