Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hey guys.

So I genuinely want help with some SMP coding, I went on to your IRC channel and got kicked because my name was a little long, (it wasn't offensive in any way)

I tried to rejoin and found I was banned.

That is a little bit lame guys. Try to be nicer, whoever is admin on that channel.

You were banned for having a really stupid name. Causing 1/2 my screen to be allocated for the username list.

Thats retarded.

Either way, ask your logical questions here and maybe I won't ban you from here as well.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

I have a bunch of questions relating to getting my single player mod to work on a SMP server. I don't have a great deal of understanding about how client and server files interact so I wanted to ask some broad questions, for example;

 

Is a server version of my mod_ class going to be filled with all the same methods, just different implementations?

For example I'm teleporting the player to some co-ordinates, I did this using EntityPlayerSP clientside, but it I imagine I would be teleporting EntityPlayerMP serverside or something?

 

I tried running my mod in MCPs test server and crashed when I picked up a custom block out of my inventory; this is likely a result of how clueless I am at coding this SMP stuff.

 

 

Also, next time I'd appreciate it if you'd just kick me and ask me to change my name, not that I have any authority here.

It is usually better to ask a question per thread, allows for better searching in the future.  :)

 

As for the mod_ class, should be identical except you do not register renderables (block model IDs, TESR's, Entity Renderers, etc...) and so forth, plus networking code is different.

 

EntityPlayerSP is the player class for both SP and Client, EntityPlayerMP is the player class for on the server only, so yes.

 

As for crashing, we need an error log.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.