michaelzangl / minebot

Minebot
GNU General Public License v3.0
146 stars 48 forks source link

Sell items at a server #117

Open PinkmanHD opened 8 years ago

PinkmanHD commented 8 years ago

Hello, I play on a server, you have two sell ores. At first he farmes the ores and oreblocks and once the inventory is full he went to a certain and coordinate to make right click on a person. And all in a loop + eating can somone help me with that?

walaoaaa1234 commented 8 years ago

javascript is posible to do that

couldbejake commented 7 years ago

Hi there, I haven't looked fully into Minebot's JavaScript engine but you may find it easier to create this very specific job as a mixture of Minebot and your own forge mod. Minebot is a great tool that has tons of great features, but unfortunately this doesn't include very specific ones.

I've attached a utility class that should help you with basic scripting, ie. Looking at a sign, Right Clicking, ..+

AIUtils.zip

@michaelzangl - I'd really love a java API accessible from other mods, but I'm guessing theres a reason why theres a JavaScript engine instead.

A simply way to communicate with minebot from your mod would be simply

Minecraft.getMinecraft().thePlayer.sendChatMessage("/minebot"); as MineBot currently catches all messages before they are sent by the player.