Started by
The_WereF0X
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, i wanted to make a mod for forge server side only and not have it on the client but the option "server-side only" doesnt work
Topic category: Help with Minecraft modding (Java Edition)
Hello, i wanted to make a mod for forge server side only and not have it on the client but the option "server-side only" doesnt work
That option doesn't change anything, it just shows in the forge mod menu that it is server side.
@SpyCoder77 bruh they should change it
@SpyCoder77 That is not right:
That is right, that it shouw in the forge mod menu that it is server side but does change the behaviour so that the mod don't need to be installed on the client. It means you only need to install the mod on the server.
@SparkleArts No you still need it on the client if its a forge/fabric mod, i havent tested anything else, (also because spigot generator sucks)
Well, I think it is caused by how MCreator's generator templates are made. Forge docs say this: https://docs.minecraftforge.net/en/latest/concepts/sides/#writing-one-sided-mods
Generally, you have to tell forge to ignore mod not being loaded on client/server.
WorldEdit does very similar thing (uses the same method, but with reflection) to do the same.
Also you have to remember to not use any client side code (so you are left with mainly commands).
P. S. I remember that in 2020 was posted issue on github.com with this checkbox with forge 1.15.2 at the time, and i guess it's just a leftover from old mcreator versions, not sure if and what was changed to that checkbox since then: https://github.com/MCreator/MCreator/issues/672