Make Java Modding Binding for Minetest

For people working on the C++ code.
User avatar
Posts: 670
Joined: Sat Apr 08, 2017 08:16
Location: Somewhere over the Rainbow : Bonn, Germany
GitHub: appgurueu
In-game: LMD + PRO_LMD + Limo

Make Java Modding Binding for Minetest

by LMD » Sat Apr 08, 2017 08:26

I'd like to make a library using java, so that mods can also be made in java. Where is the c++ file the modding functions are saved in ? How could I provide compatibility with java ? Probably using a txt file where blocks, items, tools, terrains etc are registered in, for example, where c and java can both write and read ?


Something as LUAJ may be a possibility...
Last edited by LMD on Sat Dec 09, 2017 17:01, edited 1 time in total.
Magic-CTF(soon)MTPCFractal-SuiteModel Creator Schematic CreatorColorfulXmas BallsWebsite • Never judge me by my age

User avatar
Posts: 5494
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

User avatar
Posts: 198
Joined: Wed Aug 03, 2016 20:23
GitHub: evrooije
In-game: Beerholder

Re: Make Java Modding Binding for minetest

by Beerholder » Sun Apr 09, 2017 13:49

There are multiple files containing the various functions. One thing to keep in mind: Java is not a scripting language so you either have to provide the .class files to the embedded VM or you will have to call the javac compiler e.g. in case you would like .java source files to be compiled at runtime. The latter requires for the development kit to be installed besides the JRE on clients where you need to support this.

Return to Partly official engine development

Who is online

Users browsing this forum: No registered users and 5 guests