{"id":19846941,"url":"https://github.com/cc-tweaked/datapack-example","last_synced_at":"2025-05-01T21:31:33.752Z","repository":{"id":56192956,"uuid":"287701596","full_name":"cc-tweaked/datapack-example","owner":"cc-tweaked","description":"An example datapack for CC: Tweaked","archived":false,"fork":false,"pushed_at":"2023-06-15T10:30:03.000Z","size":6,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2024-05-17T02:55:36.528Z","etag":null,"topics":["computercraft","datapack","minecraft"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cc-tweaked.png","metadata":{"files":{"readme":"README.md","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":"2020-08-15T07:44:01.000Z","updated_at":"2024-05-11T17:13:44.000Z","dependencies_parsed_at":"2022-08-15T14:20:56.815Z","dependency_job_id":null,"html_url":"https://github.com/cc-tweaked/datapack-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-tweaked%2Fdatapack-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-tweaked%2Fdatapack-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-tweaked%2Fdatapack-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cc-tweaked%2Fdatapack-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cc-tweaked","download_url":"https://codeload.github.com/cc-tweaked/datapack-example/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278381,"owners_count":17285080,"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":["computercraft","datapack","minecraft"],"created_at":"2024-11-12T13:13:00.503Z","updated_at":"2024-11-12T13:13:01.631Z","avatar_url":"https://github.com/cc-tweaked.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example ComputerCraft Datapack\nThis is an example datapack for ComputerCraft, which can be used as a skeleton\nfor your own pack.\n\n## Lua files\nDatapacks can be used to add or overwrite files in [ComputerCraft's own rom][rom],\nallowing you to add new programs or modules, or adjust the behaviour of existing\nones. This pack comes with several features:\n\n - `apis/my_api.lua`: Example of a old-style API with a single method `my_api.do_something()`.\n - `programs/api_program.lua`: A new program `api_program`, which just calls the\n   above function.\n - `modules/main/my_module.lua`: A new module with a single method `do_something()`.\n - `programs/my_program.lua`: A new program `my_program`, which just calls `do_something` from `my_module`.\n - `modules/turtle/helpers.lua`: A new module with a `digColumn` method.\n - `programs/turtle/demo.lua`: A new turtle program that uses the `helpers` module to dig 3x3 openings.\n - `autorun/my-pack.lua`: A basic program which is run whenever a computer turns\n   on. This may be used to perform additional setup, such as [registering\n   autocompletion][completion] for your programs.\n\n(Note: files in `turtle` folders will only be visible to turtles!)\n\n## In-game behaviour\nDatapacks can also be used to add or change the behaviour of specific bits of\nCC: Tweaked. For example:\n\n - Add new turtle tools. This pack adds a netherite sword (`data/minecraft/computercraft/turtle_upgrades/netherite_sword.json`).\n   See the [netherite-tools](https://github.com/cc-tweaked/netherite-tools) datapack for more complete example.\n - Allow items or blocks to be interacted with via `turtle.place()`. This pack extends `data/computercraft/tags/blocks/turtle_can_use.json`\n   to allow pressing buttons via `turtle.place()`.\n\n## Using the Pack\nThe contents of this project should be placed in the `datapacks` folder in your world's save folder. You may need to\nzip[^1] the folder for Minecraft to recognize it. The resulting file structure should look something like this:\n\n```\ndatapacks\n└─my-pack(.zip)\n  ├ pack.mcmeta\n  └─data\n    └─computercraft\n      └─\u003cyour files go here\u003e\n```\n\n[^1]: The `pack.mcmeta` file should be in the root of the resulting zip. Using 7-Zip on Windows go into the `my-pack`\n      folder, select all, `RMB`\u003e`7-Zip`\u003e`Add to \"my-pack.zip\"`, then move to `datapacks` folder.\n\nFor more information on datapacks, see [the Minecraft wiki][datapacks].  \n\nObviously this is just a skeleton, so is designed to be forked and used for your own programs!\n\n[datapacks]: https://minecraft.gamepedia.com/Data_pack \"Datapacks on the Minecraft wiki.\"\n[rom]: https://github.com/SquidDev-CC/CC-Tweaked/tree/mc-1.15.x/src/main/resources/data/computercraft/lua/rom\n[completion]: https://tweaked.cc/module/shell.html#v:setCompletionFunction\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcc-tweaked%2Fdatapack-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcc-tweaked%2Fdatapack-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcc-tweaked%2Fdatapack-example/lists"}