|
From: Ben L. <ben...@gm...> - 2015-10-19 21:41:23
|
Hello Paul Recently I have also been investigating ways of creating minecraft plugins in python. I have came up with a prototype of building plugins on top of the Sponge API. I have put the code on github here https://github.com/skinny121/PySponge The major hurdles for creating a binding is that the different plugin apis all like to use annotations and they often use annotations statically to discovers plugins. The solution I came up with was to simply generate the main plugin java class via a setup script and link to the plugin python files from there. Ben Lewis On Tue, Oct 20, 2015 at 12:14 AM, Paul Everitt <pau...@me...> wrote: > > On Oct 15, 2015, at 11:48 AM, Stefan Eletzhofer < > ste...@gm...> wrote: > > Hi Paul, > > Am [DATE] schrieb "Paul Everitt" <[ADDRESS]>: > > > > As has been discussed here a few times, Minecraft is a great place for > getting kids interested in programming. Python, via Jython, is a great > match for that, as the #1 teaching language. > > > Yeah, it is! Two children *love* Minecraft. I guess they'd *love* to > teach MC some new tricks if > it would be approachable. > > > It certainly has the potential to be quite approachable. Seppe’s original > blog post has a screencast showing how you can let people type in Python > code, from a browser: > > > http://blog.macuyiko.com/post/2015/rebuilding-our-jython-console-plugin-for-minecraft.html > > We have other material in a different place (GitHub organization with some > repos) but I don’t want to promote that name until it’s clear the project > will continue. > > > Seppe vanden Broucke got a Jython-based Minecraft plugin that lets you run > Python code that talks to the Minecraft server API, including a > websocket-based Web UI for typing in code that is sent over and executed. > It’s fascinating stuff. I’m pitching in to work on that frontend and some > other project stuff. > > > Do you have a link somewhere? > > > But we need some help on the Java/Jython side if it is going to go > anywhere. Even 5 hours of help from someone that knows Java, Gradle/Maven, > and Jython would go a long way. I don’t know those things, and am unlikely > to learn it well enough in the time I have available. > > > Well -- I don't know about java (cough) but we do have experience in > Jython -- our company's software > bases on a Jython backend to a PLM System (Jython 2.7, Flask based) ... > > The problem is I have not the faintest idea how MC works. Any concrete > issues / suggestions? > > > Minecraft servers support server-side extension via plugin systems. There > are 3 main plugin projects at the moment: > > - Canary (dead) > - Spigot (successor to Canary’s API) > - Sponge (more ambitious) > > Seppe’s code has support for Canary and Spigot. For the most part, it > works, but there are some things that could be done. > > What’s more needed, though, is basic Java/Jython stuff. We don’t have an > automated way to build it (e.g Gradle or Maven) which also means we can’t > really hook it up to a CI server. (For that matter, we don’t have any > tests.) > > At the point where we want to attract any outsiders, we need to pay > attention to some form of distribution. Our build is currently very large > and you have to do a few semi-error-prone manual steps to install. > > Finally, you have to run a web server manually to serve up the static > files for the web UI. Would be nice to have the Jython process do that, > just to eliminate some steps needed. > > Beyond that, the sky is the limit. A system where plugin people could > create, collaborate, and share little snippets is certainly feasible. And > once we get to the point where we can reach out to the Python community, > we’ll have plenty of help. But we’re stuck at the moment on Java janitorial > work. [wink] > > —Paul > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |