Making Mod Multiplayer(Server) Compatible

Started by JujuBeans on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jan 2016
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Making Mod Multiplayer(Server) Compatible

I just uploaded my first mod to Curse today, and already I have a few downloads(woot!). However, one person commented that they tried to use the mod on their server but it won't work since it is made for client side only. I didn't think of this, even though I was intending to use it on my own server. I assumed it would be server compatible. :/

I tried googling this and couldn't find any answers. So, how do you make a mod for server side? 

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
What types of elements did
Fri, 09/16/2016 - 05:25

What types of elements did you use?

Active 4 years ago
Joined Jan 2016
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
I made food recipes, blocks,
Sat, 09/17/2016 - 22:28

I made food recipes, blocks, tools, and plants that spawn in the world. 

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
when the server crashes , it
Sat, 09/17/2016 - 23:04

when the server crashes , it should save some crash log , can I see it?

Active 8 years ago
Joined Sep 2016
Points:
762

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 72
I remember there being a
Sat, 09/17/2016 - 23:05

I remember there being a Server option on the MCreator with minecraft 1.7.10 and 1.8.9

Active 4 years ago
Joined Jan 2016
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
I don't have a log, since it
Sun, 09/18/2016 - 23:20

I don't have a log, since it was someone who downloaded my mod that told me. I haven't tried adding it to my server yet. 

This is what he said the crash screen displayed though:

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityClientPlayerMP

Also, it does have an option to test the mod in a server environment, but I don't see an option to compile it for a server. 

Active 8 years ago
Joined Sep 2016
Points:
762

User statistics:

  • Modifications: 0
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 72
RE:I don't have a log, since it
Mon, 09/19/2016 - 00:38

@#5 yeah, i saw the Server Test Enviroment when i was messing around with my mod, i accidenly found it while trying to launch the Client Test Enviroment, whoops, ;P

haven't tried it though

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
I have some imagination what
Mon, 09/19/2016 - 05:13

I have some imagination what the problem is, I had something similiar in past but I need whole log to tell more.

Active 4 years ago
Joined Jan 2016
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Ok, I'll ask the person if he
Mon, 09/19/2016 - 17:22

Ok, I'll ask the person if he could give me a copy. I really would like people to be able to use it on their servers. 

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
Can I see code of mcreator
Tue, 09/20/2016 - 14:12

Can I see code of mcreator_wallpaperDonut?

Active 4 years ago
Joined Jan 2016
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
Where would I find it? I am
Tue, 09/20/2016 - 23:58

Where would I find it? I am in the Pylo/MCreator folders but not sure what next. 

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
You have some element with
Wed, 09/21/2016 - 04:48

You have some element with name wallpaperDonut. Just look to its code

Active 4 years ago
Joined Jan 2016
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 20
http://pastebin.com/8McmpgKk
Wed, 09/21/2016 - 17:39

http://pastebin.com/8McmpgKk

I hope that's right. I never decompiled a class file before. lol. Maybe I'll actually start writing my own code instead of relying solely on MCreator. :D

Active 7 years ago
Joined Nov 2016
Points:
881

User statistics:

  • Modifications: 0
  • Forum topics: 21
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 155
Just a little update I found
Sun, 10/08/2017 - 23:14

Just a little update I found after testing, Blocks and Mobs create problems on servers, but items, recipes work fine, plants also work fine, so I would advice sticking to them.