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

Robot Script Interpreter

Recommended Posts

Posted

Easily move your robot using very short commands!

rim('10(5flfl)')

The code above demonstrates how your robot will do:

Quote

move forward 5 times, go left, forward, left, and repeat all 10 times.

By only one line of command!

Easily import the source code:

local rim = require('<this file>').interpret
rim('ud') -- Go up and down

E.g robot excavation:

rim('32(15(16(xf)lfl)15(xf)xd2l)', robot.swingDown)
Quote

Digs 16x16 area (all swingDown), 32 blocks deep.

 

Documentation is inside the source code (head).

https://pastebin.com/L2JtJA61

 

Changelogs:

- Added local scope to everything.

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.