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

Hi!

I coded a Client Side mod.

Do I have to change something to put it on a Forge server?

 

Please help me,

Mike

This is totally depending on your code.

Usually you can just run your mod on client and server side, unless your code runs some stuff that will crash the server (like playing sound effects). You will have to mark these code like:

@SideOnly(Side.CLIENT)

  • Author

Do I have to make a version for the client and one for the server of the mod?

Because, if I make the mod for the server like this:

 

 

@Mod(modid = "mike", name = "MikesMod", version = "1.0.0")

@NetworkMod(clientSideRequired = false, serverSideRequired = true)

 

 

 

It isn't working.

 

I changed all @SideOnly(Side.Client) to @SideOnly(Side.Server)

 

Please help me,

Mike

 

Hi

 

By definition, a client side mod doesn't need to be run on the server.  So installing it on the server doesn't make any sense.

 

Do you mean that your mod runs in single player mode, but you want to run it multiplayer?

 

That might be very easy or very hard depending on how you've coded it.  Maybe you could describe your mod a bit more.

 

-TGG

 

 

  • Author

Hi!

The mod makes 3 new dimension.

There are 3 portal blocks.

And 3 new Flint ad Steels.

 

Please help me,

Mike

  • Author

Hi

 

By definition, a client side mod doesn't need to be run on the server.  So installing it on the server doesn't make any sense.

 

Do you mean that your mod runs in single player mode, but you want to run it multiplayer?

 

That might be very easy or very hard depending on how you've coded it.  Maybe you could describe your mod a bit more.

 

-TGG

 

I solved it, thanks.

 

Mike

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.