Skip to content

Instantly share code, notes, and snippets.

View dividebyzeroeth's full-sized avatar

Divide by Zero dividebyzeroeth

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dividebyzeroeth on github.
  • I am dividebyzeroeth (https://keybase.io/dividebyzeroeth) on keybase.
  • I have a public key ASB97IckbP-xfqfoHMmMISQfoLGaCr4UfUKuYLSfNa7X8wo

To claim this, I am signing this object:

@dividebyzeroeth
dividebyzeroeth / platform.js
Last active February 5, 2022 22:14
Cryptovoxels script for a platform that can be triggered by a switch to move from y1 to y2.
// Cryptovoxels script for a platform that can be triggered by a switch to move from y=cube['y1'] to y=cube['y2'].
// Place this script into one (or more) buttons that control the platform.
// Place a cube and name it "cube_1" in Feature ID and scale as needed (this is the platform)
let platform = parcel.getFeatureById('cube_1')
// set x- and z-coordinates to the same value as cube['x'] and cube['z'] (below)
// set y-position to less than cube['y1'] to start.