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...
Make Java Modding Binding for Minetest
- 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
Last edited by LMD on Sat Dec 09, 2017 17:01, edited 1 time in total.
- 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
src/scripting
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: Make Java Modding Binding for minetest
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.
Who is online
Users browsing this forum: No registered users and 3 guests