Jump to content

Recommended Posts

Posted

Then you should trigger some methods in playercontroller. See Minecraft and PlayerController code that how it works.

(Yes, it should be handled on client side)

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

Posted

Then you should trigger some methods in playercontroller. See Minecraft and PlayerController code that how it works.

(Yes, it should be handled on client side)

can you give me an example of walking to a location and placing a block there?

Posted

It's not just a "walk to location". You will have to implement some pathfinding algorithm (A* is a good one).

I am going to add blocks and there locations to a list, and then do if its air go to it and place a block

 

Posted

You don't need any fake mobs. Just find the path, and force the player to follow the path on client side.

  (Some Entity AIs contain pathfinding code, so it would be helpful)

 

And on placing and breaking, you would just invoke right click to place, and left click to break.

 

(NOTE : You might need some reflection trick to do that.)

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

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.