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 and I need help to create a grass bot

this bot has to automatically place dirt in selected blocks, and when they turn into grass harvest them automatically, it will also have to be able to use commands like /tell

though I need help doing this, as I am not familiar with the forge api

Should bot be a static block (machine) that operates on some block (around or below or facing for example) or should it be a living entity that walks around and does bot stuff?

 

You will either go with TileEntity (for block-machine).

or custom entity, where you will certainly want to look at how sheep eats grass (they actually find grass and set it to dirt - eating it).

1.7.10 is no longer supported by forge, you are on your own.

And if it is an entity you'll definitely need to start programming custom AIs for your entity to run on. Like Ernio said look into the sheep class to see how they locate and change grass.

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

So, you want the player to press a key that, in turn, activates a "bot" like state (can not control player) to harvest grass?

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

That is kind of hacking

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Like Asweez points out, that is basically a type of hacking (assuming you create a bot that is better than a human).

 

It also would be a tough programming exercise.  Are you an experienced modder and Java programmer.  I think you'd have to create an AI and pathfinding system and then you'd have to intercept all the user input or at least generate user input that achieves what you want.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

I am very good at java, though I am not a forge modder, though I really need this done. is it possible for you guys to help me out? with code, etc?

Why do you need this done so bad? And no we won't help because that is hacking

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

Is it just me or this "I am very good at" is not very compatible with the kind of help being asked?

 

edit: fixed typo

just you wait! ;)

So you don't actually program using forge and you're basically just asking us experienced modders to make a hacked client for you?

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

  • Author

No,  I will do research about forge and do it my self, I just dont know where to start for making the player auto walk, place blocks, break blocks, etc

Dude take a hint! We aren't helping you because what you are trying to do is hacking!!

Creator of the MyFit, MagiCraft, Tesseract gun, and Papa's Wingeria mod.

No,  I will do research about forge and do it my self, I just dont know where to start for making the player auto walk, place blocks, break blocks, etc

 

I already gave you some hints about the topics you need to learn.  AI, pathfinding, and input interception.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Well, I'm not entirely sure what the person wants, but if he wants the player to be able to change to an automated state, then he either needs a transforming command to make the player into a separate entity, or a piece of code that directly 'hacks' into the players buttons and causes them to be physically pressed in a certain manner. I lean towards the first as the second one is easily replicable with programs you can make separately. The second one is somewhat simple though. Just make a basic player, but replace the keyboard functions with repeating timers. I'm afraid I can't actually help you do this, though, as I am not fully aware how to mod the player entity.

I lean towards the first as the second one is easily replicable with programs you can make separately.

 

No, you wouldn't want a separate bot program for this because it would need too much "vision processing" to figure what to do.  Separate bots work well for games like Runescape where there is a fixed map (everything is in a known location), resources regenerate in the exact same place and the colors are set (they don't change with lighting and such) so you can look for particular pixel colors and assume what is there.  To try to prevent bots in Runescape the game developers actively disrupt repetitive tasks with random mini games, although they too can be accomplished with a bot.

 

In Minecraft you would need the bot to be in-game so it could find the block to be mined or whatever.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

I lean towards the first as the second one is easily replicable with programs you can make separately.

 

No, you wouldn't want a separate bot program for this because it would need too much "vision processing" to figure what to do.  Separate bots work well for things like Runescape where there is a fixed map (everything is in a known location) and the colors are set (they don't change with lighting and such) so you can look for particular pixel colors and assume what is there.  In Minecraft you would need the bot to be in-game so it could find the block to be mined or whatever.

 

I assume that he just wants a repeating button masher, correct?

I assume that he just wants a repeating button masher, correct?

 

That wouldn't be very useful in Minecraft (unlike games like Runescape).  According to the poster, the bot is supposed to plant things and then harvest them.  I assume he'd want more than one plant going.  So it would have to be aware of where it can plant, know how to check back for harvesting, etc.

 

Also, when someone asks a question like this you know their next question will be: now how do I make a bot that can fight zombies, etc.

 

But yes, if it were just button mashing he could do that simply with separate program.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Hmm. I'd look into the villager, zombie pigmen, and skeleton classes then. It seems like those 3 all do farming, sword fighting, and shooting arrows. Beyond that, I'm not sure, though.

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.