diff options
| author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-07-28 13:51:32 +0200 |
|---|---|---|
| committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-07-28 13:51:32 +0200 |
| commit | f7a042223f9c82c7764c0df3a3531bda04e9ad64 (patch) | |
| tree | 1d227816dc680ea883ba16a385c2151714e65961 /builtin | |
| parent | 344fddc1727f637b3c4e2a9b88844d952b91fe4f (diff) | |
| download | dragonfireclient-f7a042223f9c82c7764c0df3a3531bda04e9ad64.tar.xz | |
Added cheat Menu
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/client/cheats.lua | 30 | ||||
| -rw-r--r-- | builtin/client/init.lua | 1 | ||||
| -rw-r--r-- | builtin/settingtypes.txt | 2 |
3 files changed, 31 insertions, 2 deletions
diff --git a/builtin/client/cheats.lua b/builtin/client/cheats.lua new file mode 100644 index 000000000..efd8c6452 --- /dev/null +++ b/builtin/client/cheats.lua @@ -0,0 +1,30 @@ +core.cheats = { + ["Combat"] = { + ["Killaura"] = "killaura", + ["AntiKnockback"] = "antiknockback", + ["NoFallDamage"] = "prevent_natural_damage", + ["AutoRespawn"] = "autorespawn", + }, + ["Movement"] = { + ["DragonRider"] = "entity_speed", + ["Freecam"] = "freecam", + ["PrivBypass"] = "priv_bypass", + }, + ["Render"] = { + ["Xray"] = "xray", + ["Fullbright"] = "fullbright", + ["HUDBypass"] = "hud_flags_bypass", + ["NoHurtCam"] = "no_hurt_cam" + }, + ["World"] = { + ["FastDig"] = "fastdig", + ["AutoDig"] = "autodig", + ["IncreasedRange"] = "increase_tool_range", + ["UnlimitedRange"] = "increase_tool_range_plus", + }, + ["Misc"] = { + ["Enderchest"] = function() + minetest.open_special_inventory() + end, + } +} diff --git a/builtin/client/init.lua b/builtin/client/init.lua index ee344e7bc..44703a57c 100644 --- a/builtin/client/init.lua +++ b/builtin/client/init.lua @@ -9,4 +9,5 @@ dofile(commonpath .. "chatcommands.lua") dofile(commonpath .. "vector.lua") dofile(clientpath .. "util.lua") dofile(clientpath .. "chatcommands.lua") +dofile(clientpath .. "cheats.lua") diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt index 9c4c57f56..b706294db 100644 --- a/builtin/settingtypes.txt +++ b/builtin/settingtypes.txt @@ -2252,5 +2252,3 @@ hud_flags_bypass (HUDBypass) bool true antiknockback (AntiKnockback) bool false autorespawn (AutoRespawn) bool false - -show_cheat_hud (CheatHUD) bool true |
