{"id":15158245,"url":"https://github.com/userunp/sparkscript","last_synced_at":"2025-09-30T08:31:33.093Z","repository":{"id":37074921,"uuid":"485915812","full_name":"UserUNP/sparkscript","owner":"UserUNP","description":"DiamondFire for Javascript.","archived":true,"fork":false,"pushed_at":"2023-06-24T23:52:53.000Z","size":6766,"stargazers_count":12,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T16:21:57.780Z","etag":null,"topics":["diamondfire","minecraft"],"latest_commit_sha":null,"homepage":"https://userunp.github.io/sparkscript","language":"TypeScript","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/UserUNP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2022-04-26T19:10:04.000Z","updated_at":"2025-01-03T19:35:36.000Z","dependencies_parsed_at":"2024-09-19T02:45:56.936Z","dependency_job_id":null,"html_url":"https://github.com/UserUNP/sparkscript","commit_stats":{"total_commits":229,"total_committers":3,"mean_commits":76.33333333333333,"dds":0.4366812227074236,"last_synced_commit":"424050832e8afdb7bae7edbe981a98ff5084b078"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserUNP%2Fsparkscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserUNP%2Fsparkscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserUNP%2Fsparkscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UserUNP%2Fsparkscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UserUNP","download_url":"https://codeload.github.com/UserUNP/sparkscript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234719357,"owners_count":18876523,"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":["diamondfire","minecraft"],"created_at":"2024-09-26T20:41:53.288Z","updated_at":"2025-09-30T08:31:27.349Z","avatar_url":"https://github.com/UserUNP.png","language":"TypeScript","readme":"# DEPRECATED\nI'm no longer maintaining this.\n\n# DiamondFire library\n__Simple to use DiamondFire library for Javascript.__\n    \n__Check out [DiamondFire](https://mcdiamondfire.com), its pretty cool.__  \n__Manual template manipulation guide by Owen [here](https://mcdiamondfire.com/threads/code-template-manipulation.51/)__  \n  \n[![gh-actions](https://github.com/UserUNP/sparkscript/actions/workflows/build.yml/badge.svg)](https://github.com/UserUNP/sparkscript/actions/workflows/sparkscript.yml)\n[![gh-actions](https://github.com/UserUNP/sparkscript/actions/workflows/codeql.yml/badge.svg)](https://github.com/UserUNP/sparkscript/actions/workflows/codeql.yml)  \n[![npm-sparkscript](https://nodei.co/npm/sparkscript.png)](https://npmjs.org/package/sparkscript)  \n***Warning***: *No stable version yet.. everything might flop and/or change*  \n\nExample: *for current git build*\n```javascript\n// import the quick editor\n// import df from \"sparkscript\";\nconst df = require(\"sparkscript\").default;\n\nconst template = df(\"Test template\", (e, s) =\u003e {\n  // e short for \"editor\"\n  // s short for \"settings\"\n  e.defAction(\"giveItems\", (/* args */) =\u003e {\n    e.player.action(\"SetHotbar\", e.mc(\"cod\", \"§b§l\u003c-§c§o killer fish §b§l-\u003e\"), e.mc(\"bow\", \"§b§l\u003c-§c§o le bow §b§l-\u003e\"))\n    //* you can use \u0026 for other things. use § for color codes.\n  });\n\n  //* you can use .setTarget() to specify the player to target. you can also chain it amongst other functions\n  //* ex:\n  // const funnyAction = e.player.action(\"DoAFlip\").setTarget(\"Default\")\n  // funnyAction.setInverted(true).setAction(\"NOTAFlip)\n\n  e.player.event(\"Join\");\n  e.action.giveItems();\n\n  e.player.event(\"Respawn\");\n  e.action.giveItems();\n\n});\n\nconst code = template.export();\nconsole.log(code.compressed);\n```\n  \n  \nKey features:  \n\\\u003e Read from template data with `.from( )` function.  \n\\\u003e ~~Read \u0026 compile from Spark file, buffer or string.~~ **_till spkc v2 gets an official release._**  \n\\\u003e Easy to use template editor.  \n  \n## Actiondump\nYou might need to specify the actiondump using the `setActionDump` function that's in default export.  \nOr use the `codeDump` file that exports all actiondump related functions into a default object, simply import the file:  \n`const codeDump = require(\"sparkscript/core/codeDump\");` or `import codeDump from \"sparkscript/core/codeDump\";`\n\n# Build from source\n\nYou can use either `npm` or `yarn` for this.  \n\n```sh\nmkdir sparkscript\ncd sparkscript\ngit clone https://github.com/UserUNP/sparkscript .\nnpm install\nnpm run build\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserunp%2Fsparkscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuserunp%2Fsparkscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuserunp%2Fsparkscript/lists"}