aboutsummaryrefslogtreecommitdiff
path: root/builtin/client/cheats/init.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-10-17 11:11:22 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-10-17 11:11:22 +0200
commitbbcd2495444225fd16f61f8a830185ed5b8cf77f (patch)
treeadbf984c13414abd959b23022ca8b8f5a0916972 /builtin/client/cheats/init.lua
parent80f416d51449ffc6907f7e2b6d1ef935abee5611 (diff)
downloaddragonfireclient-bbcd2495444225fd16f61f8a830185ed5b8cf77f.tar.xz
New Mod System
Diffstat (limited to 'builtin/client/cheats/init.lua')
-rw-r--r--builtin/client/cheats/init.lua77
1 files changed, 77 insertions, 0 deletions
diff --git a/builtin/client/cheats/init.lua b/builtin/client/cheats/init.lua
new file mode 100644
index 000000000..9eb2594a0
--- /dev/null
+++ b/builtin/client/cheats/init.lua
@@ -0,0 +1,77 @@
+core.cheats = {
+ ["Combat"] = {
+ ["Killaura"] = "killaura",
+ ["AntiKnockback"] = "antiknockback",
+ ["FastHit"] = "spamclick",
+ ["AttachmentFloat"] = "float_above_parent",
+ },
+ ["Movement"] = {
+ ["Freecam"] = "freecam",
+ ["AutoForward"] = "continuous_forward",
+ ["PitchMove"] = "pitch_move",
+ ["AutoJump"] = "autojump",
+ ["Jesus"] = "jesus",
+ ["NoSlow"] = "no_slow",
+ ["AutoSneak"] = "autosneak",
+ },
+ ["Render"] = {
+ ["Xray"] = "xray",
+ ["Fullbright"] = "fullbright",
+ ["HUDBypass"] = "hud_flags_bypass",
+ ["NoHurtCam"] = "no_hurt_cam",
+ ["BrightNight"] = "no_night",
+ ["Coords"] = "coords",
+ ["Tracers"] = "enable_tracers",
+ ["ESP"] = "enable_esp",
+ },
+ ["World"] = {
+ ["FastDig"] = "fastdig",
+ ["FastPlace"] = "fastplace",
+ ["AutoDig"] = "autodig",
+ ["AutoPlace"] = "autoplace",
+ ["InstantBreak"] = "instant_break",
+ ["Scaffold"] = "scaffold",
+ ["ScaffoldPlus"] = "scaffold_plus",
+ ["BlockWater"] = "block_water",
+ ["PlaceOnTop"] = "autotnt",
+ ["Replace"] = "replace"
+ },
+ ["Exploit"] = {
+ ["EntitySpeed"] = "entity_speed",
+ ["ParticleExploit"] = "log_particles",
+ },
+ ["Player"] = {
+ ["NoFallDamage"] = "prevent_natural_damage",
+ ["NoForceRotate"] = "no_force_rotate",
+ ["IncreasedRange"] = "increase_tool_range",
+ ["UnlimitedRange"] = "increase_tool_range_plus",
+ ["PointLiquids"] = "point_liquids",
+ ["PrivBypass"] = "priv_bypass",
+ ["AutoRespawn"] = "autorespawn",
+ },
+ ["Chat"] = {
+ ["IgnoreStatus"] = "ignore_status_messages",
+ ["Deathmessages"] = "mark_deathmessages"
+ },
+ ["Inventory"] = {
+ ["AutoEject"] = "autoeject",
+ ["AutoTool"] = "autotool",
+ ["Enderchest"] = function() core.open_enderchest() end,
+ ["HandSlot"] = function() core.open_handslot() end,
+ ["NextItem"] = "next_item",
+ }
+}
+
+function core.register_cheat(cheatname, category, func)
+ core.cheats[category] = core.cheats[category] or {}
+ core.cheats[category][cheatname] = func
+end
+
+local cheatpath = core.get_builtin_path() .. "client" .. DIR_DELIM .. "cheats" .. DIR_DELIM
+
+dofile(cheatpath .. "chat.lua")
+dofile(cheatpath .. "inventory.lua")
+dofile(cheatpath .. "movement.lua")
+dofile(cheatpath .. "player.lua")
+dofile(cheatpath .. "render.lua")
+dofile(cheatpath .. "world.lua")