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 all,

 

I started with Forge modding not long ago and wanted to make a mod that doesn't require the server to be also running that mod.

It only does math and sets the velocity on the player after rotating it.

 

When I run it on singleplayer it works fine, when I join a server then it stops working all together without errors.

 

Do I need to use the proxy system for this?

 

Code for reference: http://pastebin.com/7RFzxuWn

 

Thanks, Timtower

It looks like you're reinventing the command system. You should create a class that implements

ICommand

(extending

CommandBase

will handle a lot of stuff for you) for each of your commands and then register them with

ClientCommandHandler#registerCommand

.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author

I managed to create a command that logs stuff to the console.

 

Creating the required stuff to let it work again (at least in singleplayer) won't be that hard.

 

Will edit when I run into issues again.

 

Thanks guys ;)

 

EDIT: Works like a charm, really appreciate it, the errors that are currently in are my own fault :P

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.