{"id":17218706,"url":"https://github.com/jwulf/camunda-minecraft-plugin","last_synced_at":"2026-02-09T03:31:23.405Z","repository":{"id":44854780,"uuid":"235223476","full_name":"jwulf/camunda-minecraft-plugin","owner":"jwulf","description":"The Camunda Engine embedded in a Minecraft plugin","archived":false,"fork":false,"pushed_at":"2022-01-21T23:36:47.000Z","size":433,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T23:12:24.777Z","etag":null,"topics":["camunda","minecraft","scriptcraft"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/jwulf.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}},"created_at":"2020-01-21T00:15:05.000Z","updated_at":"2022-09-16T08:48:04.000Z","dependencies_parsed_at":"2022-08-02T16:15:46.472Z","dependency_job_id":null,"html_url":"https://github.com/jwulf/camunda-minecraft-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jwulf/camunda-minecraft-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fcamunda-minecraft-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fcamunda-minecraft-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fcamunda-minecraft-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fcamunda-minecraft-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwulf","download_url":"https://codeload.github.com/jwulf/camunda-minecraft-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Fcamunda-minecraft-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269683154,"owners_count":24458625,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["camunda","minecraft","scriptcraft"],"created_at":"2024-10-15T03:47:54.118Z","updated_at":"2026-02-09T03:31:23.343Z","avatar_url":"https://github.com/jwulf.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CamundaCraft - The Minecraft BPMN Plugin\n\n![](img/CamundaCraft.jpg)\n\n_Orchestrate Minecraft with BPMN and JavaScript!_\n\nThe Camunda Engine embedded in a Minecraft plugin for Bukkit-compatible Minecraft servers.\n\nThe plugin has a single delegate method for task execution. The executor uses a field injection named `delegate` from a service task.\n\nIt uses the value of this field to look up a JavaScript handler in a map.\n\nAny .bpmn and .js files in `plugins/CamundaPlugin` will be loaded. Take a look at the files in [test-data](test-data) for the format of the .js file.\n\nRegister the handlers using the `registerHandler(name, code)` method. See the example below.\n\n## Try it out!\n\nIf you have docker and npm installed, it is easy to test using the [Scriptcraft Modular Architecture](https://github.com/Magikcraft/scriptcraft-modular-arch) image.\n\nRun: \n\n```\nnpm i -g smac\nmvn package\nsmac\n```\n\nThis will start a Minecraft server in Docker and mount the plugin into it.\n\nIt will pipe the server log to your terminal, and - _bonus!_ - give you an interactive session.\n\nWhen the server finishes booting, type: `ts on`. This turns the terminal into a TypeScript REPL on the server. _Magic_.\n\nNow paste these commands in:\n\n```typescript\nconst xml = `\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\u003cbpmn:definitions xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:camunda=\"http://camunda.org/schema/1.0/bpmn\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" id=\"Definitions_0fr9mxs\" targetNamespace=\"http://bpmn.io/schema/bpmn\" exporter=\"Camunda Modeler\" exporterVersion=\"3.5.0\"\u003e\u003cbpmn:process id=\"my-project-process\" isExecutable=\"true\"\u003e\u003cbpmn:endEvent id=\"EndEvent_0x6ir2l\"\u003e\u003cbpmn:incoming\u003eSequenceFlow_0krhw54\u003c/bpmn:incoming\u003e\u003c/bpmn:endEvent\u003e\u003cbpmn:startEvent id=\"StartEvent_1\"\u003e\u003cbpmn:outgoing\u003eSequenceFlow_0tmt5j8\u003c/bpmn:outgoing\u003e\u003c/bpmn:startEvent\u003e\u003cbpmn:sequenceFlow id=\"SequenceFlow_0tmt5j8\" sourceRef=\"StartEvent_1\" targetRef=\"say-hello\" /\u003e\u003cbpmn:sequenceFlow id=\"SequenceFlow_0krhw54\" sourceRef=\"say-hello\" targetRef=\"EndEvent_0x6ir2l\" /\u003e\u003cbpmn:serviceTask id=\"say-hello\" name=\"Say Hello\" camunda:class=\"io.magikcraft.camunda.Executor\"\u003e\u003cbpmn:extensionElements\u003e\u003ccamunda:field name=\"delegate\"\u003e\u003ccamunda:string\u003esomeFunction\u003c/camunda:string\u003e\u003c/camunda:field\u003e\u003c/bpmn:extensionElements\u003e\u003cbpmn:incoming\u003eSequenceFlow_0tmt5j8\u003c/bpmn:incoming\u003e\u003cbpmn:outgoing\u003eSequenceFlow_0krhw54\u003c/bpmn:outgoing\u003e\u003c/bpmn:serviceTask\u003e\u003c/bpmn:process\u003e\u003cbpmndi:BPMNDiagram id=\"BPMNDiagram_1\"\u003e\u003cbpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"my-project-process\"\u003e\u003cbpmndi:BPMNShape id=\"EndEvent_0x6ir2l_di\" bpmnElement=\"EndEvent_0x6ir2l\"\u003e\u003cdc:Bounds x=\"432\" y=\"99\" width=\"36\" height=\"36\" /\u003e\u003c/bpmndi:BPMNShape\u003e\u003cbpmndi:BPMNShape id=\"StartEvent_0mjamr5_di\" bpmnElement=\"StartEvent_1\"\u003e\u003cdc:Bounds x=\"179\" y=\"99\" width=\"36\" height=\"36\" /\u003e\u003c/bpmndi:BPMNShape\u003e\u003cbpmndi:BPMNEdge id=\"SequenceFlow_0tmt5j8_di\" bpmnElement=\"SequenceFlow_0tmt5j8\"\u003e\u003cdi:waypoint x=\"215\" y=\"117\" /\u003e\u003cdi:waypoint x=\"270\" y=\"117\" /\u003e\u003c/bpmndi:BPMNEdge\u003e\u003cbpmndi:BPMNEdge id=\"SequenceFlow_0krhw54_di\" bpmnElement=\"SequenceFlow_0krhw54\"\u003e\u003cdi:waypoint x=\"370\" y=\"117\" /\u003e\u003cdi:waypoint x=\"432\" y=\"117\" /\u003e\u003c/bpmndi:BPMNEdge\u003e\u003cbpmndi:BPMNShape id=\"ServiceTask_07166wq_di\" bpmnElement=\"say-hello\"\u003e\u003cdc:Bounds x=\"270\" y=\"77\" width=\"100\" height=\"80\" /\u003e\u003c/bpmndi:BPMNShape\u003e\u003c/bpmndi:BPMNPlane\u003e\u003c/bpmndi:BPMNDiagram\u003e\u003c/bpmn:definitions\u003e`\n\nconst c = server.getPluginManager().getPlugin(\"CamundaPlugin\")\n\nc.registerHandler(\"someFunction\", \"function(execution) { var process = execution.getProcessInstanceId(); __plugin.logger.info('Yay!!! The job handler was called from process instance ' + process )}\")\n\nc.deployBpmn(\"model.bpmn\", xml);\n\nc.runtimeService.createProcessInstanceByKey(\"my-project-process\").execute()\n```\n\nYou will see the handler execute:\n\n```\n[02:14:06 INFO]: [CamundaPlugin] Yay!!! The job handler was called from process instance 24\n```\n\n_Epico!_\n\nTo shut down the server, type: `smac stop`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwulf%2Fcamunda-minecraft-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwulf%2Fcamunda-minecraft-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwulf%2Fcamunda-minecraft-plugin/lists"}