{"id":16865187,"url":"https://github.com/lesmiscore/groovymodpe","last_synced_at":"2026-04-13T23:02:35.049Z","repository":{"id":147866803,"uuid":"88351567","full_name":"Lesmiscore/GroovyModPE","owner":"Lesmiscore","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T05:08:14.000Z","size":66,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T23:16:21.200Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lesmiscore.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-04-15T14:20:21.000Z","updated_at":"2017-11-19T08:05:39.000Z","dependencies_parsed_at":"2024-11-25T01:41:08.315Z","dependency_job_id":"36c204c7-7817-46ed-b78f-cbaeebab862f","html_url":"https://github.com/Lesmiscore/GroovyModPE","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/Lesmiscore%2FGroovyModPE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesmiscore%2FGroovyModPE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesmiscore%2FGroovyModPE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lesmiscore%2FGroovyModPE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lesmiscore","download_url":"https://codeload.github.com/Lesmiscore/GroovyModPE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244306042,"owners_count":20431736,"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-13T14:46:06.510Z","updated_at":"2026-04-13T23:02:34.952Z","avatar_url":"https://github.com/Lesmiscore.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GroovyModPE\nbrings you Groovy into BlockLauncher\n\n## Compilation\nPlease install [Gradle](https://gradle.org) for compilation.    \nChange the current directory where this repo cloned, and type this on command line: `gradle mergeJavascript`     \nYou'll see `GroovyModPE.js` at `Repo Directory/build/` (Please just ignore other files.)    \n\n## Usage\nJust import `GroovyModPE.js` into [BlockLauncher](https://play.google.com/store/apps/details?id=net.zhuoweizhang.mcpelauncher).    \nPlace your groovy file at `SD card or internal storage/games/com.mojang/groovyMods/`.    \nFiles starting with `.`(dot) will be ignored.\n\n## Basic coding\n\nFor Groovy language grammar, please search yourself.\n\n### Defining hooks\n\n```groovy\nhooks.newLevel={-\u003e\n\n}\n```\nIn this case, `newLevel` is the name of hook. This is a hook name from BlockLauncher.    \n`{...-\u003e` is argument list.    \n\n\n### Calling methods from BlockLauncher\n\n```groovy\nclientMessage('This is a message from Groovy mod.')\n```\n\nJust do the same thing as Javascript do.    \nYou can call functions in objects. (e.g. ModPE, Block)\n\n```groovy\nEntity.getAll()\n```\n\n### Getting `Activity`(Context) object\n\n`com.mojang.minecraftpe.MainActivity.currentMainActivity.get()` is too long to use, so there's alternative way.\nUse `context` to get Context object instead.\n\n```groovy\nimport android.app.AlertDialog\n\ndef dialog=new AlertDialog.Builder(context)\ndialog.message='I give you a pen from Groovy script'\ndialog.show()\n```\n\n### Using `ConfigSlurper`\nAndroid uses `Dalvik` to execute Android application, so using `ConfigSlurper` directly would give you an error.    \nTo compile your groovy script dynamically, use `createScript` method.\n\n```groovy\ndef cs=new ConfigSlurper()\ndef obj=cs.parse(createScript('value=\"A script inside script\"'))\nprint(obj)\n```\n\n## Attention\nAll the code is not tested yet: I can't trust that it works well.    \nPlease be careful.    \nCompiled code will be released when it finishes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesmiscore%2Fgroovymodpe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesmiscore%2Fgroovymodpe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesmiscore%2Fgroovymodpe/lists"}