Started by
JujuBeans
on
Topic category: Help with Minecraft modding (Java Edition)
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?
What types of elements did you use?
I made food recipes, blocks, tools, and plants that spawn in the world.
when the server crashes , it should save some crash log , can I see it?
I remember there being a Server option on the MCreator with minecraft 1.7.10 and 1.8.9
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.
@#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
I have some imagination what the problem is, I had something similiar in past but I need whole log to tell more.
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.
http://pastebin.com/n1VqbJme
There's a link to his crash report. :)
Can I see code of mcreator_wallpaperDonut?
Where would I find it? I am in the Pylo/MCreator folders but not sure what next.
You have some element with name wallpaperDonut. Just look to its code
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
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.