Coder Social home page Coder Social logo

altoclef-example's Introduction

altoclef-example

Example Repository for making custom altoclef commands and tasks

View the Programming VOD for an overview of everthing in this repo and more.

How to Develop/Use

  1. Copy this repo/make a template repository
  2. If you are using an IDE and its linting isn't working, run gradle build once (it should download altoclef dependencies and kick in from there)
  3. run gradle runClient. Load into a world. Send the example command to verify the repo works (@example)
  4. Use the examples to add your own custom commands and tasks.

Task Development Stream: Common Edge cases/bugs to keep in mind!

  1. Always implement isEqual!
  2. Whenever going to the closest object, remember the ping pong movement issue (to approach one goal it gets closer to another). This can be fixed in one of the following ways:
    • Committing to one (_target = closest, if (target != null) {do to closest})
    • Use DoToClosestBlockTask/DoToClosestEntityTask
  3. What if your target is surrounded in bedrock or is floating way too high up in the air? If a block is unreachable/the bot fails to get there: Use mod.getBlockTracker().unreachable(blockpos)
  4. Learning how to use a debugger is crucial to speeding up the debugging process!
  5. Hot Swapping can be done in Intellij, it lets you reload your code changes without restarting Minecraft.

Coming Soon...

  • Commands with arguments examples
  • A task demonstrating each system that you may use with the bot.

altoclef-example's People

Contributors

tacotechnica avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.