Make Java Modding Binding for Minetest

For people working on the C++ code.
Post Reply
User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Make Java Modding Binding for Minetest

by LMD » Post

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 ?

EDIT :

Something as LUAJ may be a possibility...
Last edited by LMD on Sat Dec 09, 2017 17:01, edited 1 time in total.
My stuff: Projects - Mods - Website

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

Re: Make Java Modding Binding for minetest

by rubenwardy » Post

src/scripting
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

Re: Make Java Modding Binding for minetest

by Beerholder » Post

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. javax.tools.JavaCompiler 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests