Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
tobivandebulk

Harvesting Drone quite easy to use

Recommended Posts

Hi,

Edit: feel free to ask me any questions since obviosuly I have not documented this script well... or at all :P

I have created this little script when I started getting into scripting months ago when I created my first thread with a question in this forums - and thought I share it now.

 

I might update and advance it but I am not sure yet. Since I haven't done any development work eversince then.

Any feedback is appreciated, since I am really unexperienced in this topic :D

 

You'll need:

1 Charger and Energy supply

1 Chest

1 Drone with this script

 

The first thing you have to  do is open the code and define your width and length of your field:

fieldWidth = 

fieldLength =

Then flash it onto your EEPROM and put it into your drone.

 

You have to place the charger on one corner of your field. 

The drone moves positive on Z axis for "forward" and negative on X axis for "right" in my script.

So you may have to try out all 4 corners or just compare to your coordinates in F3 data screen to get the right direction.

Then place the drone on the charger and start it.

 

You can place a Chest behind the starting position of the drone and it will place items in there.

spacer.png
 

The reason you have to let the drone start from a specific direction is, that I couldn't get the navigation upgrade to work due to issues with which chunks the vanilla map loads,

you use to craft the navigation module.

 

Best Regards,

a scripting noob

harvestingScript.lua

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.