Jump to content

Recommended Posts

Posted

I am trying to bind a key to make the playing 'ghost' in the game. By 'ghosting', I mean that the player client sided leaves the player's body behind and does not send updates to the server anymore until done with 'ghosting'.

I haven't come anywhere yet, although I figured it has to do with rewriting parts of the classes 'EntityPlayerSP' and 'PlayerControllerMP'.

But how would I make forge know that I have overwritten these? And if I manage to overwrite them, does it suffice to stop all packet sending to the server and only update EntityPlayerSP's location and such?

 

Thanks in advance for helping!

Posted
10 minutes ago, DireDoesGames said:

A "ghost mod" would be classified as a hack which is not allowed on this forum...

 

It depends. If the player has to die before he can "ghost", it's not really a hack. And he could put heavy limits to the "ghost".

 

@OP, take a look at how Minecraft handles spectator mode.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
1 minute ago, DireDoesGames said:

That's not dying 

 

I know. He just wasn't really specific about when a user can press the key (maybe he can only "ghost" when he's dead and presses a key). But that doesn't matter, as he said it's for an actual mod.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.