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

Hello everyone, I am trying to create a mod that on enable walks in a hollowed cube, and fills it up with blocks, then later breaks it.

The only problem is that I don't know where to start with auto walking, etc

Could you try and word it again, with a bit more detail? Do you mean you want the player to walk, place blocks, and later have those blocks deleted or something else?

  • Author

Yes I want the player to set what blocks to place and break, then when enabled the player will automatically walk around placing those blocks and then later breaking them

so you want to make a minecraft bot?

Also, I should have you know that you are reading my signature.

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.

  • Author

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?

  • Author

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

 

  • Author

maybe I can make every block, the player needs to break, etc send packets to the player, making fake mobs where he has to place it, this way he has away going around it, etc?

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

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.