Jump to content

Recommended Posts

Posted

Hello I have some spigot knowledge of packets and making the player mine or move with packets but I'm unfamiliar on how to do this client sided. Am I to look for certain functions in the minecraft player class? And for making the player move without teleportation (W,A,S,D) would I have to simulate a keyboard here for the game? Thanks help is appreciated.

Posted

Are you making a bot?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 6/6/2020 at 9:47 PM, DaemonUmbra said:

Are you making a bot?

Expand  

Well not really, there are certain actions I want to happen given a certain event. I want the player to move from one end of the house to the other when he clicks the furnace but not through teleportation but from walking being simulated. And for mining I want to add another curse affect where it takes over the players mouse and aims it down to the floor essentially mining straight down, this would usually trigger if there is lava under him. And the only way to break its control is if the player times a jump according to the block break animation. I don't know how feasible this is really.

Posted
  On 6/8/2020 at 4:18 AM, IdiomCoder said:

Well not really, there are certain actions I want to happen given a certain event. I want the player to move from one end of the house to the other when he clicks the furnace but not through teleportation but from walking being simulated. And for mining I want to add another curse affect where it takes over the players mouse and aims it down to the floor essentially mining straight down, this would usually trigger if there is lava under him. And the only way to break its control is if the player times a jump according to the block break animation. I don't know how feasible this is really.

Expand  

If you are implementing a curse effect then you should do all this server side.

You can then send a packet to the client to rotate the camera or play certain animation.

Some tips:

  Reveal hidden contents

 

Posted
  On 6/8/2020 at 5:01 AM, DavidM said:

If you are implementing a curse effect then you should do all this server side.

You can then send a packet to the client to rotate the camera or play certain animation.

Expand  

Isn't server side only on a server though? Or are players on a local server when playing single player. Do you know where I should be looking for camera rotation, Thanks.

Posted

Single player is just a local server, there are only slight differences (i.e. some commands are dedi-only and LAN is obviously SP-only)

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 6/8/2020 at 5:15 AM, IdiomCoder said:

Isn't server side only on a server though? Or are players on a local server when playing single player. Do you know where I should be looking for camera rotation, Thanks.

Expand  

Single player uses an integrated server. Its how "open to LAN" even functions at all.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.