Jump to content

Porting a fabric mod to forge


Paul Carlisle

Recommended Posts

Since the death of schematica, people have turned to a somewhat updated version called litematica. The problem is, if you have a forge server, you have to use forge and NOT fabric loader which the mod runs on.

I was wondering if someone with coding knowledge could port a fabric mod to forge for me, for 1.19.1. There is only one person working on litematica and the associated library mod, and they are definitely not prioritizing it.

litematica: https://www.curseforge.com/minecraft/mc-mods/litematica/files

malilib: https://www.curseforge.com/minecraft/mc-mods/malilib/files

 

The death of the schematica mod was a terrible tragedy for the community, I would really appreciate it if someone could do this.

Link to comment
Share on other sites

4 hours ago, Paul Carlisle said:

could port a fabric mod to forge

AH HAHAHAHAHA! 🤣

No seriously though, the two ecosystems are so wildly different that it wouldn't be so much a "port" as "rewritten from scratch."

Forge: make everything compatible because no one touches vanilla code directly. If Forge doesn't make what you need possible, make a PR.
Fabric: we can update to new versions quickly because we only have the basics. So if you need something special, you're going to have to patch the vanilla code yourself, have fun~!

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Quote

Forge: make everything compatible because no one touches vanilla code directly. If Forge doesn't make what you need possible, make a PR.
Fabric: we can update to new versions quickly because we only have the basics. So if you need something special, you're going to have to patch the vanilla code yourself, have fun~!

That's a misrepresentation and I think you know it. 🙂 Isn't having fun the whole point of writing mods?

I agree they are 2 different philosophies (which you prefer is a matter of taste):

 

Forge: A one-stop shop for everything you need for modding, concentrating on mod compatibility/correctness

Fabric: An a-la-carte (don't pay for what you don't need) approach where the fabric-api concentrates on common use cases and the ecosystem provides more specialised apis, and don't expect it to hold your hand when it comes to writing correct mods

 

Forge itself has something of the a-la-carte with mods like curios, "waila", jei, patchoulli, terrablender, etc. having specialised apis not provided by forge.

It's really a matter of where the 2 draw the line.

 

I agree the difference in philosophy makes porting mods more difficult.

For the original poster, Litematica are already working on it (but they have been for a while): https://github.com/maruohon/litematica/issues/234

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

6 hours ago, warjort said:

Fabric: An a-la-carte (don't pay for what you don't need) approach where the fabric-api concentrates on common use cases and the ecosystem provides more specialised apis, and don't expect it to hold your hand when it comes to writing correct mods

It also leads to everyone writing their own API addons that duplicate efforts and makes things incompatible with each other because everyone creates a patch that does what they need and only what they need. It also means that when Minecraft updates if you have a mod that relies on one of these additional specialized APIs, you have to wait on that author to update it, even though Fabric's main API is already current.

Quote

Forge itself has something of the a-la-carte with mods like curios, "waila", jei, patchoulli, terrablender, etc. having specialised apis not provided by forge.

Neither Waila nor JEI require additional source patches to work with Forge. They have their own APIs, yes, but that's not what I'm referring to when I say that Fabric requires modders create additional hooks inside vanilla code.

Forge makes sure that every mod stays well out of vanilla code so that mods don't conflict with each other and crash the game.

I'm referring to this:
https://fabricmc.net/wiki/start#mixins_asm

Fabric pushes modders towards ASM. ASM is dangerous, complex, and highly fragile. It can lead to code that crashes code that isn't your code with the resulting stack trace having no evidence as to which mod caused the issue! It can DO anything, but it doesn't do it safely.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.