zhuowei / RaspberryJuice

A plugin for Bukkit implementing the Minecraft Pi API
Other
321 stars 146 forks source link

Alternative plugin to access Bukkit API thought pyjnius? #88

Open nitanmarcel opened 4 years ago

nitanmarcel commented 4 years ago

This is a little off-topic but you have any ideas of plugins that lets you access the API from outside sources? (Like a GUI app, console, etc.)

If you never heard about pyjnius it's a python module to access Java classes from within python.

It's more used with Kivy, another library that allows you to code Android app in python but can be used on other purposes too. I see it useful for enabling python modding in Minecraft with ease as there shouldn't be any need to make some crazy hooks between Java functions and python ones (in theory)

electronstudio commented 4 years ago

GraalVM can run Python and Java code in the same VM. I tested it with PaperMC as the server and it let me add Python code to a plugin and run it sucessfully.

electronstudio commented 4 years ago

Because someone requested it, here is my proof of concept: https://github.com/electronstudio/python-minecraft-plugin