blockworld icon indicating copy to clipboard operation
blockworld copied to clipboard

What way will the api for mod be like?

Open lisirrx opened this issue 1 year ago • 5 comments

Any proposal of such apis? And how can this project work together with the mod loaders(forge&fabric) which rely on ask mechanism

lisirrx avatar Jan 27 '24 04:01 lisirrx

@lisirrx

Any proposal of such apis?

This question is still discussing by the dev team. (Welcome to our dev QQ group 908918502!)

But basically we will just provide an api like forge or fabric in Javascript or some scripting language (except lua, it has been proofed as a bad choice in Minetest) which is able to compile into WASM.

And how can this project work together with the mod loaders(forge&fabric) which rely on ask mechanism

Does "ask mechanism" mean "observer pattern"?

Our target is not to load minecraft mods in runtime, which means you have to put some effort into modifying the source code of original minecraft mods which are without mixins. We just want this process to be easier.

BreakingLead avatar Jan 27 '24 08:01 BreakingLead

Thanks for your reply. I made a typo with asm to ask which I refered to the mixin in fabric.

lisirrx avatar Jan 27 '24 10:01 lisirrx

Mods with mixins are not considered to be supported. But maybe we could provide a solution to those mods...

BreakingLead avatar Jan 28 '24 07:01 BreakingLead

well…… mixin mods are pretty complex, and it contains a lot of java stuf, so just ignore it

shenjackyuanjie avatar Feb 05 '24 13:02 shenjackyuanjie

Mods with mixins are not considered to be supported. But maybe we could provide a solution to those mods...

也许可以考虑直接运行一个 JVM,然后把 Minecraft 本体中的一些事件映射回 rust,来减小 mixin 的影响?

xuxiaocheng0201 avatar Mar 27 '24 02:03 xuxiaocheng0201