Skip to content

Programmable Block #65

@zyxkad

Description

@zyxkad

As well as:

  • Upgraded Gyro: can detect either ship's omega and angular acceleration (note not torque), OR velocity and acceleration. (switch mode use wrench only, and cannot rotate ship if used as detector)
  • Wireless Node: can connect other devices to the programmable block. And it does not take block space

It should:

  • contains a relative easy to understand program view (such as create sequence box).
  • contains method to operate itself to rotate, or control redstones and/or other devices (such as normal gyro, thrusters) via touching / wireless node.
  • allow basic calculations (+, -, *, /, pow, floor).
  • stores variables as a double.
  • resume the program when loaded.

Program will run when an event triggers, but it does not allow to define loops, instead, player should define a event "run per X ticks" if they want keep checking something.

Statements:

  • copy: assign a variable with another variable / constants's value
  • calc: do calculation between two variables / constants and assign the output to a defined variable.
  • query: query a data on a device / self, and assign the output to defined variables.
  • operate: do an operation on a list of devices.
  • sleep: wait for certain ticks
  • if: only execute certain statements when condition of variables match.

We also can predefine some useful small program, such as simple stabilizer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions