{"id":18736384,"url":"https://github.com/matcool/candy","last_synced_at":"2025-11-16T15:30:17.749Z","repository":{"id":98990288,"uuid":"189918712","full_name":"matcool/candy","owner":"matcool","description":"(WIP) A language that compiles into minecraft functions","archived":false,"fork":false,"pushed_at":"2020-08-16T02:21:26.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T16:44:50.265Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/matcool.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-03T02:05:13.000Z","updated_at":"2023-11-20T17:40:37.000Z","dependencies_parsed_at":"2023-04-08T05:17:42.932Z","dependency_job_id":null,"html_url":"https://github.com/matcool/candy","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/matcool%2Fcandy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fcandy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fcandy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fcandy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matcool","download_url":"https://codeload.github.com/matcool/candy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239611993,"owners_count":19668274,"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-11-07T15:20:37.127Z","updated_at":"2025-11-16T15:30:17.714Z","avatar_url":"https://github.com/matcool.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# candy (WIP)\n\u003cp align=\"center\"\u003eA language that compiles into minecraft functions\u003c/p\u003e\n\n[![Demo video](https://imgur.com/f142R0P.png)](https://streamable.com/063av)\n\nBasic example, which compiles to 3 functions\n```python\ndef main:\n# Lines starting with a / are not compiled, just put in as is\n    /say Hello world!\n    if checkBlock(\"~ ~-1 ~\", minecraft:stone):\n        say('You are standing on stone!')\n    self:test()\n\n# This function will say hi\ndef test:\n    say('I am from another function')\n```\n```python\n# main.mcfunction\nsay Hello World!\nexecute if block ~ ~-1 ~ minecraft:stone run function candy_basic:main_gen0\nfunction candy_basic:test\n\n# main_gen0.mcfunction\nsay You are standing on stone!\n\n# test.mcfunction\nsay I am from another function\n```\nFor more examples check the examples folder\n\n# Usage\nRun the candy.py file with the desired arguments\n```\nusage: candy.py [-h] [-o OUTPUT] [--force] file\n\npositional arguments:\n  file                  Candy file to compile\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -o OUTPUT, --output OUTPUT\n                        Path for the generated datapack, if omitted will not\n                        be saved anywhere\n  --force               Force datapack even if theres already a folder\n```\n\n# Extra info\n- Functions with the name of `load` or `tick` will run upon loading (or /reload) and on every tick, respectively","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatcool%2Fcandy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatcool%2Fcandy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatcool%2Fcandy/lists"}