Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 2.31 KB

README.md

File metadata and controls

50 lines (39 loc) · 2.31 KB

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