rosegold.cr v0.4.1

Legal (Civ servers) minecraft bot client written in crystal

rosegold

Minecraft client written in Crystal, following the botting rules of CivMC

Rosegold is a custom Minecraft botting client with the following goals:

  1. Efficiency and accessibility: Rosegold aims to make botting accessible to all Civ users by providing a clean and easy-to-understand DSL for creating bots, while also ensuring that the client remains efficient.
  2. Headless with a headful feel (coming soon): Although Rosegold is a headless client, it seeks to address the limitations of current bots by providing a proxy that allows a standard vanilla Minecraft client to connect, spectate, and control. This approach offers the benefits of headless clients while maintaining a headful user experience.
  3. Compliance with server-specific botting rules: Rosegold is designed for use on servers with specific botting rules, such as CivMC, which restrict bots from seeing or hearing. The client makes it challenging to create bots that violate these rules, ensuring a fair gameplay experience.
  4. Portable and easy-to-distribute: Leveraging Crystal's ability to compile into portable binaries, Rosegold aims to simplify the distribution process for developers, making it easier to set up and manage bots for their nations.

How to Start Writing Bots

  1. crystal init app <nameforyourbotrepo>

  2. Add the dependency to your shard.yml:

    dependencies:
      rosegold:
        github: grepsedawk/rosegold.cr
        version: ~> 0.4
    
  3. Run shards install

  4. Start with a basic example by writing a file in src/, something like...

    require "rosegold"
    bot = Rosegold::Bot.join_game("play.civmc.net")
    sleep 3
    
    while bot.connected?
      bot.eat!
      bot.yaw = -90
      bot.pitch = -10
      bot.inventory.pick! "diamond_sword"
      bot.attack
      bot.wait_ticks 20
      puts bot.feet
      puts "Tool durability: #{bot.main_hand.durability} / #{bot.main_hand.max_durability}"
    end
    

Contributing

  1. Fork it (https://github.com/grepsedawk/rosegold.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Repository

rosegold.cr

Owner
Statistic
  • 20
  • 8
  • 24
  • 1
  • 4
  • 8 months ago
  • June 6, 2022
License

MIT License

Links
Synced at

Wed, 24 Apr 2024 10:24:30 GMT

Languages