Jump to content

Recommended Posts

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

Posted

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.

Posted

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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