{"id":17034151,"url":"https://github.com/lordnull/cheatcraft","last_synced_at":"2025-03-22T21:42:56.918Z","repository":{"id":1166686,"uuid":"1058455","full_name":"lordnull/CheatCraft","owner":"lordnull","description":"Edit Minecraft NBT files...In Erlang!","archived":false,"fork":false,"pushed_at":"2012-05-29T19:58:24.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T01:36:43.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lordnull.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-07T03:39:46.000Z","updated_at":"2012-12-15T22:57:02.000Z","dependencies_parsed_at":"2022-08-16T12:25:09.533Z","dependency_job_id":null,"html_url":"https://github.com/lordnull/CheatCraft","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordnull%2FCheatCraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordnull%2FCheatCraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordnull%2FCheatCraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lordnull%2FCheatCraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lordnull","download_url":"https://codeload.github.com/lordnull/CheatCraft/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245026004,"owners_count":20549067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T08:37:33.099Z","updated_at":"2025-03-22T21:42:56.892Z","avatar_url":"https://github.com/lordnull.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"Overview\n========\n\nMade because I was on my 4th mine, and was still nowhere near having enough\nmaterials to make tracks across the world.  That and I was bored.  So I \npicked up Erlang for it's bit syntax, read through Notch's description of\nthe [NBT Format](http://www.minecraft.net/docs/NBT.txt), and made a \nset of cheats.\n\nSo...What do I do with this?\n============================\n\nOnce you've got the repo, use the provided rebar to compile it.  Rebar will\ncomplain, but that's because this isn't an application proper, just a \ncouple of modules.\n\n**Do not do this while Minecraft is running!**  You will likely corrupt your\nlevel.dat file, thus losing the hundreds of hours put into building that \nawesome obsidian castle.\n\nLaunch erl, making sure to have the nbt and cheatcraft modules available.\nIn the shell, the fastest and usualy best way to cheat:\n\n\tcheatcraft:do(\"path/to/level.dat\", [fix_all, stack_blocks]).\n\nThe above will fix all items (pick axes, armor, etc...) and stack any \nblocks you have in your inventory to 64 (like diamond, iron, iron igots).\n\nOnce you feel you've cheated enough:\n\n\tq().\n\nAnd then open Mincraft, and marvel at the number of sticks you have because\nyou didn't remove them from your inventory!\n\nOkay, what else?\n================\n\nLoad an level.dat (or any nbt encoded) file into a decompressed nbt \nstructure:\n\n\tcheatcraft:read_file(\"path/to/level.dat\").\n\nWrite an nbt structure to a file:\n\n\tcheatcraft:write_file(\"path/to/level.dat\").\n\nGet a value from the nbt structure:\n\n\tnbt:get_value(Nbtstruct, [\u003c\u003c\"names_or_list_positions\"\u003e\u003e]).\n\nSet a Value:\n\n\tnbt:set_value(NBTStruct, [\u003c\u003c\"names_or_list_postions\"\u003e\u003e], Value).\n\nStack everything in your invtory (in case you want 64 pickaxes):\n\n\tcheatcraft:do(\"path/to/level.dat\", [stack_all]).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordnull%2Fcheatcraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flordnull%2Fcheatcraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flordnull%2Fcheatcraft/lists"}