Server side mods?

Started by The_WereF0X on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Server side mods?

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

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That option doesn't change…
Mon, 08/28/2023 - 11:29

That option doesn't change anything, it just shows in the forge mod menu that it is server side.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@SpyCoder77 bruh they should…
Sun, 09/10/2023 - 09:01

@SpyCoder77 bruh they should change it

 

Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@SpyCoder77 That is not…
Sun, 09/10/2023 - 09:07

@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.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@SparkleArts No you still…
Sun, 09/10/2023 - 12:52

@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)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, I think it is caused…
Sun, 09/10/2023 - 15:00

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