Giter VIP home page Giter VIP logo

treefarm's Introduction

TreeFarm

Problem

Do you need fuel for your turtles? Gathering resources with your turtles isn't efficient? Don't cry anymore... Automatic turtle tree farm is solution for you!

This program will gather wood, saplings, log for you! You can process wood into coal.

Introduction

Minecraft automatic tree farm using computercraft mod

Features:

  • Unlimited size ( Need more optimizations - lag - Recommended max ( 10+10 )x( 10+10 ) size )
  • Unlimited Turtle count ( Need more optimizations - lag - Recommended max 30 turtles )
  • Self sufficient ( You only need to create automatic log to coal processing )
  • Automatic refueling

Resources needed:

  • Coal ( starting fuel for each turtle ( ~64 coal ) )
  • Chest x5
  • Turtle with wireless modem and pickaxe or axe;
  • Saplings ( depends on farm size )
  • Dirt ( depends on farm size )
  • Torches ( depends on farm size )
  • Computer with wireless modem
    • (Optimal) Monitor

Program files

  • lain.lua - In game rename to - lain
    • library with
      • Turtle movement functions
      • Display functions
  • worker.lua
    • Turtle program
      • uses lain library
  • control.lua
    • Control computer ( Server ) program
      • uses lain library

Installation

Image

  1. Setup farm
    1. Choose Treefarm location ( Advice: place block in the ground like in image )
      • Farm location needs to be flattened
    2. Place 5 chests like in the first image ( one block space between them )
    3. Fill chests from the right side with: (Turtle will build farm only if there is enough resources) 0. Nothing - Chest will be used for harvested wood
      1. Birch saplings
      2. Fuel ( Coal )
      3. Torches
      4. Dirt
  2. Setup server computer 0. Place computer on ground and attach modem ( right side ) - Optimal - Attach monitor ( back side )
    1. Download lain.lua, control.lua files
    2. Rename lain.lua to lain
    3. Launch control.lua
    4. Answer all questions
      • TreeFarm coordinates are coordinates what you see when standing on block before the first chest from the right side (obisidan block in image) and looking to the first (Wood/empty) chest
      • Recommended: don't use farm larger than 15, 15, 15, 15
    5. Restart computer
    6. Rename control.lua to startup
    7. Restart computer
  3. Setup turtle 0. Place turtle with wireless modem (right side) and pickaxe or axe on the ground
    1. Download lain.lua, worker.lua files
    2. Rename worker.lua to startup
    3. Restart turtle
    4. Answer all questions
      • Cordinates - turtle block coordinates and facing direction
    5. Insert Coal in the last inventory slot
  4. Setup Wood to Coal processing ( For full self sufficiently )

If some computer isn't working like expected - reboot. Please report problems.

Screenshots

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

Wood to coal processing

Image

To do

  • (High priority) More efficient sapling gathering

  • Support for larger farm size

    • Divide program saved log data into multiple files (robot.log)
      • Less data to resave in each move
  • Support larger turtle count

    • Problem: traffic congestion at first supply chest
    • Problem: slow job assignment
  • (Low priority) Automatic production of coal

    • Can be done more efficient with other mods...

treefarm's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

treefarm's Issues

Error on line 415: Attempt to index local 'lookuptable' (a nil value)

Hey there, I'm currently trying to make use of your pretty adavanced program on FTB Revelation 3.4.0 using Minecraft 1.12.2. For some reason your script always fails at the same spot for me: At first everything works well, the defined tree farm is built using dirt, saplings and torches, but after a little while - usually after returning to the chests - it always stops at the exact same spot and throws an error on line 415 of the worker script: Attempt to index local 'lookuptable' (a nil value). Do you have any idea why this keeps happening?
image
image

Download Problems.

I do not understand how to download these files onto the turtle and the computer in Minecraft. I mean downloading it onto my desktop computer (in rl) is quite easy. But I need it ingame. I got all programmes I have used so far from pastebin. There's the "pastebin get" thing. But how does it work with github? Can i do something similar?

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.