Hardware Library

Sphero/Ollie

{"func":"blockSpheroSetSpeed"}

Set Speed

Use "Set Speed" to set Sphero/Ollie to the specified speed.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"valueSpheroSpeed"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"wrapper","func":"valueSpheroSpeed"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpLess","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"string","value":"100"}]}],"containers":[{"func":"blockSpheroSetSpeed","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"choice","value":"+"},{"type":"string","value":"10"}]}]}]}} Add to my Backpack


{"func":"blockSpheroRoll"}

Roll For

Use "Roll For" to roll Sphero/Ollie for the specified time.

Parameters:

Seconds: amount of time to roll

Related Blocks:
{"func":"blockSpheroStop"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"forward"}],"next":{"func":"blockSpheroRoll","values":[{"type":"number","value":"99"}]}} Add to my Backpack


{"func":"blockSpheroStop"}

Stop Moving

Use "Stop Moving" to stop Sphero/Ollie from rolling.

Parameters:

None.

Related Blocks:
{"func":"blockSpheroRoll"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"break"}],"next":{"func":"blockSpheroStop"}} Add to my Backpack


{"func":"blockSpheroTurnCW"}

Turn Clockwise

"Turn Clockwise" turns Sphero/Ollie clockwise by the number of degrees

Parameters:

Angle: number of degrees to turn clockwise

Related Blocks:
{"func":"blockSpheroTurnCCW"} ,     {"func":"blockSpheroHeading"} ,     {"func":"valueSpheroHeading"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"right"}],"next":{"func":"blockSpheroTurnCW","values":[{"type":"string","value":90}]}} Add to my Backpack


{"func":"blockSpheroSetSpeed"}

Cambiar velocidad a

Utiliza "Cambiar velocidad a" para fijar la velocidad del Sphero u Ollie.

Parameters:

Velocidad: porcentaje de la velocidad.

Related Blocks:
{"func":"valueSpheroSpeed"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"wrapper","func":"valueSpheroSpeed"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpLess","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"string","value":"100"}]}],"containers":[{"func":"blockSpheroSetSpeed","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"choice","value":"+"},{"type":"string","value":"10"}]}]}]}} Add to my Backpack


{"func":"blockSpheroTurnCCW"}

Turn Counter-Clockwise

"Turn Counter-Clockwise" turns Sphero/Ollie counter-clockwise by the number of degrees

Parameters:

Angle: number of degrees to turn counter-clockwise

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroHeading"} ,     {"func":"valueSpheroHeading"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"left"}],"next":{"func":"blockSpheroTurnCCW","values":[{"type":"string","value":90}]}} Add to my Backpack


{"func":"blockSpheroRoll"}

Rodar durante

Utiliza "Rodar durante" para hacer que Sphero u Ollie rueden durante el tiempo especificado.

Parameters:

Segundos: la cantidad de tiempo para rodar.

Related Blocks:
{"func":"blockSpheroStop"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"forward"}],"next":{"func":"blockSpheroRoll","values":[{"type":"number","value":"99"}]}} Add to my Backpack


{"func":"blockSpheroHeading"}

Set Heading

"Set Heading" sets the heading of Sphero/Ollie. 0 is straight ahead.

Parameters:

Angle: number of degrees

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroTurnCCW"} ,     {"func":"valueSpheroHeading"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSpheroHeading","values":[{"type":"string","value":"0"}]}} Add to my Backpack


{"func":"blockSpheroStop"}

Parar

Utiliza "parar" para hacer que el Sphero u Ollie dejen de rodar.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSpheroRoll"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"break"}],"next":{"func":"blockSpheroStop"}} Add to my Backpack


{"func":"blockSpheroColor"}

Set Color

Use "Set Color" to set the color for the Sphero/Ollie.

Parameters:

Color: color to set to

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"purple"}],"next":{"func":"blockSpheroColor","values":[{"type":"color","value":"#C66BAA"}]}} Add to my Backpack


{"func":"blockSpheroTurnCW"}

Girar a la derecha

"Girar a la derecha" hace girar al Sphero u Ollie en sentido horario el número de grados especificado.

Parameters:

Ángulo: número de grados de giro en sentido horario.

Related Blocks:
{"func":"blockSpheroTurnCCW"} ,     {"func":"blockSpheroHeading"} ,     {"func":"valueSpheroHeading"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"right"}],"next":{"func":"blockSpheroTurnCW","values":[{"type":"string","value":90}]}} Add to my Backpack


{"func":"valueSpheroSpeed"}

Speed

"Speed" returns the current speed of the Sphero/Ollie as a percentage.

Parameters:

None.

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"speed up"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpLess","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"string","value":"100"}]}],"containers":[{"func":"blockSpheroSetSpeed","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"choice","value":"+"},{"type":"string","value":"10"}]}]}]}} Add to my Backpack


{"func":"blockSpheroTurnCCW"}

Girar a la izquierda

"Girar a la izquierda" hace girar al Sphero u Ollie en sentido antihorario el número de grados especificado.

Parameters:

Ángulo: número de grados de giro en sentido antihorario.

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroHeading"} ,     {"func":"valueSpheroHeading"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"left"}],"next":{"func":"blockSpheroTurnCCW","values":[{"type":"string","value":90}]}} Add to my Backpack


{"func":"valueSpheroHeading"}

Heading

"Heading" returns the current heading of Sphero/Ollie.

Parameters:

None.

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroTurnCCW"} ,     {"func":"blockSpheroHeading"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"change"}],"next":{"func":"blockSpheroHeading","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueSpheroHeading"},{"type":"choice","value":"+"},{"type":"string","value":"10"}]}]}} Add to my Backpack


{"func":"blockSpheroHeading"}

Fijar rumbo

"Fijar rumbo" establece la dirección del Sphero u Ollie. 0 es derecho hacia adelante.

Parameters:

Ángulo: número de grados.

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroTurnCCW"} ,     {"func":"valueSpheroHeading"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockSpheroHeading","values":[{"type":"string","value":"0"}]}} Add to my Backpack


{"func":"valueSpheroConnected"}

Connected?

"Connected?" returns true if connected to Sphero/Ollie; otherwise returns false.

Parameters:

None.

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroTurnCCW"} ,     {"func":"blockSpheroRoll"} ,     {"func":"blockSpheroStop"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSpheroConnected"}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"ready"}]}]} Add to my Backpack


{"func":"blockSpheroColor"}

Establecer color

Utiliza "establecer color" para determinar el color del Sphero y Ollie.

Parameters:

Color: el nuevo color a establecer.

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"purple"}],"next":{"func":"blockSpheroColor","values":[{"type":"color","value":"#C66BAA"}]}} Add to my Backpack


{"func":"valueSpheroOdometer"}

Odometer

"Odometer" returns the total distance the device has traveled in centimeters.

Parameters:

None.


{"func":"valueSpheroSpeed"}

Velocidad

"Velocidad" devuelve la velocidad actual del Sphero u Ollie como un porcentaje.

Parameters:

Ninguno.

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"speed up"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueOpLess","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"string","value":"100"}]}],"containers":[{"func":"blockSpheroSetSpeed","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueSpheroSpeed"},{"type":"choice","value":"+"},{"type":"string","value":"10"}]}]}]}} Add to my Backpack


{"func":"valueSpheroProperty"}

Get Property

"Get Property" returns the specified device property of the device.

Parameters:

Property: This is the device property to get a value for.


{"func":"valueSpheroHeading"}

Rumbo

"Rumbo" devuelve el rumbo actual del Sphero u Ollie.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroTurnCCW"} ,     {"func":"blockSpheroHeading"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"change"}],"next":{"func":"blockSpheroHeading","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueSpheroHeading"},{"type":"choice","value":"+"},{"type":"string","value":"10"}]}]}} Add to my Backpack


{"func":"registerHardwareTrigger"}

When I collide

"When I collide" is called when the device collides with another object.

Parameters:

None.

Related Blocks:
{"func":"valueSpheroCollidedSinceLastCheck"}


{"func":"valueSpheroConnected"}

¿Está conectado?

"¿Está conectado?" devuelve un valor verdadero si está conectado con el Sphero u Ollie; de lo contrario, devuelve un valor falso.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockSpheroTurnCW"} ,     {"func":"blockSpheroTurnCCW"} ,     {"func":"blockSpheroRoll"} ,     {"func":"blockSpheroStop"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueSpheroConnected"}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"ready"}]}]} Add to my Backpack


{"func":"valueSpheroCollidedSinceLastCheck"}

collided since last check?

"collided since last check?" returns true if the device has collided with another object since "collided since last check?" was last called.

Parameters:

None.

Related Blocks:
{"func":"registerHardwareTrigger"}


{"func":"valueSpheroOdometer"}

Odómetro

"Odómetro" devuelve la distancia total que el dispositivo se ha trasladado, en centímetros.

Parameters:

Ninguno.


{"func":"blockSpheroSetStabilization"}

set stabilization

"set stabilization" turns on or off internal stabilization of the device. Stabilization is enabled by default when the device is powered up.

Parameters:

Boolean: This parameter should be a boolean value (either true or false). If the value is false, device stabilization will be turned off. If the value is true, device stabilization will be turned on.


{"func":"valueSpheroProperty"}

Obtener propiedad

"Obtener propiedad" devuelve la propiedad especificada del dispositivo.

Parameters:

Propiedad: la propiedad del dispositivo cuyo valor se desea conocer.


{"func":"blockSpheroSet"}

Set Device Value To

"Set Device Value To" sets a configuration value for the device.

Parameters:

Configuration Key: This is the name of a device configuration value.

Value: This is the value to set to.


{"func":"registerHardwareTrigger"}

Cuando colisione

"Cuando colisione" se llama cuando el dispositivo colisiona contra otro objeto.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueSpheroCollidedSinceLastCheck"}


{"func":"valueSpheroCollidedSinceLastCheck"}

¿Colisioné desde la última comprobación?

"¿Colisioné desde la última comprobación" devuelve un valor verdadero si el dispositivo ha colisionado con otro objeto desde que se llamó a "¿colisioné desde la úlltima comprobación?"

Parameters:

Ninguno.

Related Blocks:
{"func":"registerHardwareTrigger"}


{"func":"blockSpheroSetStabilization"}

Estabilizar

"Estabilizar" activa o desactiva la estabilización interna del dispositivo. Por defecto, la estabilización está activada cuando se enciende el dispositivo.

Parameters:

Booleano: este parámetro es un valor boolean (verdadero o falso). Si el valor es falso, se desactivará la estabilización del dispositivo. Si el valor es verdadero, la estabilización del dispositivo se activará.


{"func":"blockSpheroSet"}

Establecer valor de dispositivo en

"Establecer valor de dispositivo en" fija un valor de configuración del dispositivo.

Parameters:

Parámetro: nombre de un valor de configuración del dispositivo.

Valor: el valor que se le va a otorgar.



Drone

{"func": "blockDroneMoveTo","values": [{"type": "string","value": "add location block here"}]}

Move Drone To

"Move Drone To" is a block that moves the drone to the supplied Minecraft location.

Parameters:

Location: This parameter is the Minecraft location where the drone will be placed.

Related Blocks:
{"func":"blockDroneMoveBy"} ,     {"func":"valueDronePosition"} ,     {"func":"blockPlayerTeleport"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "initializeDrone","label": "initializeDrone {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}]}} Add to my Backpack


{"func": "blockDroneMoveBy","values": [{"type": "choice","value": "up"},{"type": "number","value": "1"}]}

Move Drone By

"Move Drone By" is a block that moves the drone in the specified direction by the specified amount.

Parameters:

Direction: This indicates which direction to move the drone, relative to the direction it is facing.

Distance: This parameter specifies how far (in blocks) the drone will move in the Minecraft world.

Related Blocks:
{"func":"blockDroneMoveTo"} ,     {"func":"blockDroneTurnLeft"} ,     {"func":"blockDroneTurnRight"}

Sample Code:
{"func": "blockControlRepeat","values": [{"type": "number","value": 4}],"containers": [{"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 3}],"next": {"func": "blockDronePutBlock","values": [{"type": "string","value": "glowstone"}],"next": {"func": "blockDroneTurnRight","values": []}}}]} Add to my Backpack


{"func": "blockDroneTurnLeft","values": []}

Turn Drone Left

"Turn Drone Left" is a block that turns the drone's facing direction 90 degrees to the left.

Parameters:

None.

Related Blocks:
{"func":"blockDroneMoveBy"} ,     {"func":"blockDroneTurnRight"} ,     {"func":"blockDronePointCardinalDirection"} ,     {"func":"valueDroneDir"}

Sample Code:
{"func": "blockControlRepeat","values": [{"type": "number","value": 4}],"containers": [{"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 3}],"next": {"func": "blockDronePutBlock","values": [{"type": "string","value": "glowstone"}],"next": {"func": "blockDroneTurnLeft","values": []}}}]} Add to my Backpack


{"func": "blockDroneTurnRight","values": []}

Turn Drone Right

"Turn Drone Right" is a block that turns the drone's facing direction 90 degrees to the right.

Parameters:

None.

Related Blocks:
{"func":"blockDroneMoveBy"} ,     {"func":"blockDroneTurnLeft"} ,     {"func":"blockDronePointCardinalDirection"} ,     {"func":"valueDroneDir"}

Sample Code:
{"func": "blockControlRepeat","values": [{"type": "number","value": 4}],"containers": [{"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 3}],"next": {"func": "blockDronePutBlock","values": [{"type": "string","value": "glowstone"}],"next": {"func": "blockDroneTurnRight","values": []}}}]} Add to my Backpack


{"func": "blockDronePointCardinalDirection","values": [{"type": "string","value": "south"}]}

Point Drone Towards

"Point Drone Towards" is a block that sets the direction of the drone.

Parameters:

Direction: This parameter is the cardinal direction (north, south, east, or west) that the drone will face.

Related Blocks:
{"func":"blockDroneTurnLeft"} ,     {"func":"blockDroneTurnRight"} ,     {"func":"valueDroneDir"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "pointNorth","label": "pointNorth {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDronePointCardinalDirection","values": [{"type": "string","value": "north"}],"next": {"func": "blockControlRepeat","values": [{"type": "number","value": 3}],"containers": [{"func": "blockDronePutBlock","values": [{"type": "string","value": "stone"}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": "1"}]}}],"next": {"func": "blockDronePutBlock","values": [{"type": "string","value": "diamond_block"}]}}}}} Add to my Backpack


{"type": "wrapper","func": "valueDroneDir","values": []}

Drone Direction

"Drone Direction" is a value block that returns the current direction of the drone.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTurnLeft"} ,     {"func":"blockDroneTurnRight"} ,     {"func":"blockDronePointCardinalDirection"} ,     {"func":"valueDroneDir"}

Sample Code:
{"func": "blockPlayerBroadcastMessage","values": [{"type": "wrapper","func": "valueOpJoin","values": [{"type": "string","value": "The drone is facing "},{"type": "wrapper","func": "valueDroneDir","values": []},{"type": "string","value": "."}]}]} Add to my Backpack


{"type": "wrapper","func": "valueDronePosition","values": []}

Drone Location

"Drone Location" is a value block that returns the current location of the drone in the Minecraft world.

Parameters:

None.

Related Blocks:
{"func":"blockDroneMoveTo"} ,     {"func":"valueDroneDir"}

Sample Code:
{"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 5}],"next": {"func": "blockWorldSpawn","values": [{"type": "string","value": "pig"},{"type": "wrapper","func": "valueDronePosition","values": []}]}} Add to my Backpack


{"func": "blockDroneSetCheckpoint","values": [{"type": "string","value": ""}]}

Set Drone Checkpoint

"Set Drone Checkpoint" is a block that saves the drone's current location and direction as a checkpoint with a specified name.

Parameters:

Name: This parameter is the name that the checkpoint will be saved as.

Related Blocks:
{"func":"valueDroneDir"} ,     {"func":"valueDronePosition"} ,     {"func":"blockDroneGoCheckpoint"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "saveLocation","label": "saveLocation {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDroneSetCheckpoint","values": [{"type": "string","value": "start"}]}}} Add to my Backpack


{"func": "blockDroneGoCheckpoint","values": [{"type": "string","value": ""}]}

Go to Drone Checkpoint

"Go to Drone Checkpoint" is a block that moves the drone to the saved checkpoint that matches the specified name.

Parameters:

Name: This parameter is the name of the checkpoint that the drone will return to.

Related Blocks:
{"func":"blockDroneMoveTo"} ,     {"func":"blockDroneSetCheckpoint"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "goToLocation","label": "goToLocation {param:checkpoint} {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "checkpoint"},{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneGoCheckpoint","values": [{"type": "wrapper","func": "valueParam","name": "checkpoint"}],"next": {"func": "blockPlayerTeleport","values": [{"type": "wrapper","func": "valueParam","name": "player"},{"type": "wrapper","func": "valueDronePosition","values": []}]}}} Add to my Backpack


{"func": "blockDronePutBlock","values": [{"type": "string","value": "grass"}]}

Place Block at Drone

"Place Block at Drone" is a block that places a Minecraft block of the specified type at the drone's current location.

Parameters:

Block type: This parameter defines which type of block (material) to place.

Related Blocks:
{"func":"blockBlockSetFallingBlock"} ,     {"func":"blockBlockSetType"} ,     {"func":"blockDroneLineTo"}

Sample Code:
{"func": "blockControlRepeat","values": [{"type": "number","value": 4}],"containers": [{"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 2}],"next": {"func": "blockDronePutBlock","values": [{"type": "string","value": "redstone_block"}],"next": {"func": "blockDroneTurnLeft","values": []}}}]} Add to my Backpack


{"func": "blockDroneLineTo","values": [{"type": "string","value": "grass"},{"type": "string","value": "add location block here"}]}

Place Blocks in Line from Drone

"Place Blocks in Line from Drone" is a block that places a series of blocks on a line between the drone's current location and the supplied location.

Parameters:

Block type: This parameter defines which type of block (material) the line will be made out of.

Location: This parameter defines the Minecraft location that the drone will draw a line towards.

Related Blocks:
{"func":"blockDronePutBlock"} ,     {"func":"blockDroneLadder"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "drawLine","label": "drawLine {param:length} {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "length"},{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDroneLineTo","values": [{"type": "string","value": "glass"},{"type": "wrapper","func": "valueLocationAdd","values": [{"type": "wrapper","func": "valueParam","name": "length"},{"type": "number","value": "0"},{"type": "number","value": "0"},{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}]}]}}} Add to my Backpack


{"func": "blockDroneRect","values": [{"type": "choice","value": "filled"},{"type": "string","value": "grass"},{"type": "number","value": "1"},{"type": "number","value": "1"},{"type": "number","value": "1"}]}

Build Box at Drone

"Build Box at Drone" is a block that places a filled or hollow box (rectangular prism) of Minecraft blocks of the specified type and with the specified dimensions at the drone's current location.

Parameters:

Fill style: This parameter determines whether the box will be filled in or hollowed out.

Block type: This parameter defines which type of block (material) the box will be made out of.

Width: This parameter determines how many Minecraft blocks wide the box will be.

Height: This parameter determines how many Minecraft blocks tall the box will be.

Depth: This parameter determines how many Minecraft blocks deep the box will be.

Related Blocks:
{"func":"blockDroneCylinder"} ,     {"func":"blockDroneSphere"} ,     {"func":"blockDroneHemisphere"} ,     {"func":"blockDronePrism"}

Sample Code:
{"func": "blockDroneRect","values": [{"type": "choice","value": "hollow"},{"type": "string","value": "glass"},{"type": "number","value": 5},{"type": "number","value": 3},{"type": "number","value": 5}],"next": {"func": "blockDroneDoor","values": [{"type": "string","value": "single"},{"type": "string","value": "wooden_door"}]}} Add to my Backpack


{"func": "blockDroneCylinder","values": [{"type": "choice","value": "filled"},{"type": "string","value": "grass"},{"type": "number","value": "1"},{"type": "number","value": "1"},{"type": "number","value": "2"},{"type": "choice","value": "horizontal"}]}

Build Cylinder at Drone

"Build Cylinder at Drone" is a block that places a filled or hollow cylinder of Minecraft blocks of the specified type and with the specified dimensions at the drone's current location.

Parameters:

Fill style: This parameter determines whether the cylinder will be filled in or hollowed out.

Block type: This parameter defines which type of block (material) the cylinder will be made out of.

Radius: This parameter determines the radius of the cylinder.

Length: This parameter determines the length of the cylinder.

Wall thickness: This parameter determines how many blocks thick the cylinder will be, if the "hollow" fill style is selected.

Direction: This parameter determines whether the cylinder faces vertically or horizontally.

Related Blocks:
{"func":"blockDroneRect"} ,     {"func":"blockDroneSphere"} ,     {"func":"blockDroneHemisphere"} ,     {"func":"blockDronePrism"}

Sample Code:
{"func": "blockDroneCylinder","values": [{"type": "choice","value": "hollow"},{"type": "string","value": "glass"},{"type": "number","value": 3},{"type": "number","value": 3},{"type": "number","value": 1},{"type": "choice","value": "horizontal"}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 2}],"next": {"func": "blockDroneCylinder","values": [{"type": "choice","value": "filled"},{"type": "string","value": "stationary_water"},{"type": "number","value": 2},{"type": "number","value": 2},{"type": "number","value": 1},{"type": "choice","value": "horizontal"}]}}} Add to my Backpack


{"func": "blockDroneSphere","values": [{"type": "choice","value": "filled"},{"type": "string","value": "grass"},{"type": "number","value": "6"}]}

Build Sphere at Drone

"Build Sphere at Drone" is a block that places a filled or hollow sphere of Minecraft blocks of the specified type and with the specified dimensions at the drone's current location.

Parameters:

Fill style: This parameter determines whether the sphere will be filled in or hollowed out.

Block type: This parameter defines which type of block (material) the sphere will be made out of.

Radius: This parameter determines the radius of the sphere.

Related Blocks:
{"func":"blockDroneRect"} ,     {"func":"blockDroneCylinder"} ,     {"func":"bblockDroneHemisphere"} ,     {"func":"blockDronePrism"}

Sample Code:
{"func": "blockDroneSphere","values": [{"type": "choice","value": "hollow"},{"type": "string","value": "glass"},{"type": "number","value": 5}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 2}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "right"},{"type": "number","value": 2}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "up"},{"type": "number","value": 2}],"next": {"func": "blockDroneSphere","values": [{"type": "choice","value": "filled"},{"type": "string","value": "stationary_lava"},{"type": "number","value": 4}]}}}}} Add to my Backpack


{"func": "blockDroneHemisphere","values": [{"type": "choice","value": "filled"},{"type": "choice","value": "top"},{"type": "string","value": "grass"},{"type": "number","value": "6"}]}

Build Hemisphere at Drone

"Build Hemisphere at Drone" is a block that places a filled or hollow hemisphere of Minecraft blocks of the specified type and with the specified dimensions at the drone's current location.

Parameters:

Fill style: This parameter determines whether the hemisphere will be filled in or hollowed out.

Block type: This parameter defines which type of block (material) the hemisphere will be made out of.

Sphere half: This parameter defines whether the hemisphere should be the top or bottom half of a sphere.

Radius: This parameter determines the radius of the hemisphere.

Related Blocks:
{"func":"blockDroneRect"} ,     {"func":"blockDroneCylinder"} ,     {"func":"blockDroneSphere"} ,     {"func":"blockDroneHemisphere"} ,     {"func":"blockDronePrism"}

Sample Code:
{"func": "blockDroneHemisphere","values": [{"type": "choice","value": "hollow"},{"type": "choice","value": "top"},{"type": "string","value": "iron_fence"},{"type": "number","value": 5}]} Add to my Backpack


{"func": "blockDronePrism","values": [{"type": "string","value": "wood"},{"type": "number","value": "1"},{"type": "number","value": "1"}]}

Build Prism at Drone

"Build Prism at Drone" builds a right prism out of the block type specified at the drone's current location, extending in front of the drone for the specified width and depth/height.

Parameters:

Block type: This parameter defines which type of block (material) the prism will be made out of.

Width: This parameter determines how many Minecraft blocks wide the prism will be.

Depth: This parameter determines how many Minecraft blocks deep the prism will be.

Related Blocks:
{"func":"blockDroneRect"} ,     {"func":"blockDroneCylinder"} ,     {"func":"blockDroneSphere"} ,     {"func":"blockDronePrism"} ,     {"func":"blockDroneStairs"}

Sample Code:
{"func": "blockDronePrism","values": [{"type": "string","value": "cobblestone"},{"type": "number","value": 5},{"type": "number","value": 5}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "right"},{"type": "number","value": 2}],"next": {"func": "blockDroneStairs","values": [{"type": "string","value": "cobblestone_stairs"},{"type": "number","value": "1"},{"type": "number","value": "1"}]}}} Add to my Backpack


{"func": "blockDroneBlocktype","values": [{"type": "string","value": "glowstone"},{"type": "string","value": "message"}]}

Write Text at Drone

"Write Text at Drone" writes letters in Minecraft blocks at the drone's current location.

Parameters:

Block type: This parameter defines which type of block (material) the text will be written out of.

Message: This is the message that will be spelled out with Minecraft blocks.

Related Blocks:
{"func":"blockDroneSign"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "iWasHere","label": "iWasHere {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 2}],"next": {"func": "blockDroneBlocktype","values": [{"type": "string","value": "glowstone"},{"type": "wrapper","func": "valueOpJoin","values": [{"type": "wrapper","func": "valuePlayerName","values": [{"type": "wrapper","func": "valueParam","name": "player"}]},{"type": "string","value": " was here!"}]}]}}}} Add to my Backpack


{"func": "blockDroneSign","values": [{"type": "string","value": "signpost"},{"type": "string","value": ""},{"type": "string","value": ""},{"type": "string","value": ""},{"type": "string","value": ""}]}

Build Sign at Drone

"Build Sign at Drone" will place a sign of the specified parameters with the given text at the current drone position.

Parameters:

Sign type: This parameter determines whether the sign will be a free-standing signpost or a hanging wall sign.

Lines: These parameters define the text that will appear on the sign. Four lines of text can fit on the sign.

Related Blocks:
{"func":"blockDroneBlocktype"}

Sample Code:
{"func": "blockDroneRect","values": [{"type": "choice","value": "hollow"},{"type": "string","value": "acacia_fence"},{"type": "number","value": 3},{"type": "number","value": 1},{"type": "number","value": 3}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": "1"}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "right"},{"type": "number","value": "1"}],"next": {"func": "blockWorldSpawn","values": [{"type": "string","value": "wolf"},{"type": "wrapper","func": "valueDronePosition","values": []}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "backward"},{"type": "number","value": 2}],"next": {"func": "blockDroneSign","values": [{"type": "string","value": "signpost"},{"type": "string","value": "Beware"},{"type": "string","value": "Do"},{"type": "string","value": ""},{"type": "string","value": ""}]}}}}}} Add to my Backpack


{"func": "blockDroneDoor","values": [{"type": "string","value": "single"},{"type": "string","value": "wooden_door"}]}

Place Door at Drone

"Place Door at Drone" will place a door of the specified parameters at the current drone position.

Parameters:

Width: This parameter determines whether to place a single or double door.

Door type: This parameter determines which type of door to place.

Related Blocks:
{"func":"blockDroneBed"} ,     {"func":"blockDroneCreateTree"}

Sample Code:
{"func": "blockDroneRect","values": [{"type": "choice","value": "hollow"},{"type": "string","value": "brick"},{"type": "number","value": 5},{"type": "number","value": 3},{"type": "number","value": 5}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "right"},{"type": "number","value": "1"}],"next": {"func": "blockDroneDoor","values": [{"type": "string","value": "single"},{"type": "string","value": "wooden_door"}]}}} Add to my Backpack


{"func": "blockDroneBed","values": []}

Place Bed at Drone

"Place Bed at Drone" will place the foot of a bed at the drone's current location and the head of the bed 1 block in front of the drone.

Parameters:

None.

Related Blocks:
{"func":"blockDroneDoor"} ,     {"func":"blockDroneCreateTree"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "newHome","label": "newHome {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "right"},{"type": "number","value": 2}],"next": {"func": "blockDroneBed","values": [],"next": {"func": "blockWorldSetSpawnLocation","values": [{"type": "wrapper","func": "valueDronePosition","values": []}]}}}}} Add to my Backpack


{"func": "blockDroneLadder","values": [{"type": "number","value": "1"}]}

Place Ladder at Drone

"Place Ladder at Drone" will place a climbable ladder at the drone's location, extending upward the specified number of Minecraft blocks.

Parameters:

Height: This determines how many Minecraft blocks tall the ladder will be.

Related Blocks:
{"func":"blockDroneStairs"} ,     {"func":"blockDroneLineTo"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "treehouse","label": "treehouse {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 2}],"next": {"func": "blockDroneCreateTree","values": [{"type": "string","value": "tree"}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "backward"},{"type": "number","value": 1}],"next": {"func": "blockDroneLadder","values": [{"type": "number","value": 5}]}}}}}} Add to my Backpack


{"func": "blockDroneStairs","values": [{"type": "string","value": "acacia_stairs"},{"type": "number","value": "1"},{"type": "number","value": "1"}]}

Place Stairs at Drone

"Place Stairs at Drone" builds a staircase at the drone's current location, extending in front of the drone for the specified width and height/depth.

Parameters:

Stair type: This defines the type of stairs that will be placed.

Width: This is how many Minecraft blocks wide the flight of stairs will be.

Height: This is how many Minecraft blocks tall/deep the flight of stairs will be.

Related Blocks:
{"func":"blockDroneLadder"} ,     {"func":"blockDronePrism"}

Sample Code:
{"func": "blockDronePrism","values": [{"type": "string","value": "cobblestone"},{"type": "number","value": 5},{"type": "number","value": 5}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "right"},{"type": "number","value": 2}],"next": {"func": "blockDroneStairs","values": [{"type": "string","value": "cobblestone_stairs"},{"type": "number","value": "1"},{"type": "number","value": "1"}]}}} Add to my Backpack


{"func": "blockDroneCreateTree","values": [{"type": "string","value": "acacia"}]}

Plant Tree at Drone

"Plant Tree at Drone" is a block that plants a tree of the specified type at the drone's current location.

Parameters:

Tree type: This is the type of tree that will be planted.

Related Blocks:
{"func":"blockDroneDoor"} ,     {"func":"blockDroneBed"} ,     {"func":"blockBlockSetFallingBlock"} ,     {"func":"blockWorldSpawn"}

Sample Code:
{"func": "registerFunction","cat": "functions","name": "treehouse","label": "treehouse {param:player}","hasFlap": false,"values": [{"type": "wrapper","func": "valueParam","name": "player"}],"next": {"func": "blockDroneMoveTo","values": [{"type": "wrapper","func": "valueLocationFromEntityOrBlock","values": [{"type": "wrapper","func": "valueParam","name": "player"}]}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "forward"},{"type": "number","value": 2}],"next": {"func": "blockDroneCreateTree","values": [{"type": "string","value": "tree"}],"next": {"func": "blockDroneMoveBy","values": [{"type": "choice","value": "backward"},{"type": "number","value": 1}],"next": {"func": "blockDroneLadder","values": [{"type": "number","value": 5}]}}}}}} Add to my Backpack


{"func":"blockDroneTakeOff"}

Take Off

"Take Off" makes the Parrot drone take off.

Parameters:

None.

Related Blocks:
{"func":"blockDroneLand"} ,     {"func":"blockDroneEmergency"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"takeoff"}],"next":{"func":"blockDroneTakeOff","next":{"func":"blockControlWait","values":[{"type":"number","value":"1000"}]}}} Add to my Backpack


{"func":"blockDroneLand"}

Land

"Land" makes the Parrot drone land.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTakeOff"} ,     {"func":"blockDroneEmergency"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"land"}],"next":{"func":"blockDroneLand"}} Add to my Backpack


{"func":"blockDroneStop"}

Stop

"Stop" stops the Parrot drone from moving and puts it into a hover state.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTakeOff"} ,     {"func":"blockDroneLand"} ,     {"func":"blockDroneEmergency"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"stop"}],"next":{"func":"blockDroneStop"}} Add to my Backpack


{"func":"blockDroneEmergency"}

Emergency

"Emergency" cuts off power to the Parrot drone.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTakeOff"} ,     {"func":"blockDroneLand"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"emergency"}],"next":{"func":"blockDroneEmergency"}} Add to my Backpack


{"func":"blockDroneTakeOff"}

Despegar

"Despegar" hace que el dron Parrot despegue.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneLand"} ,     {"func":"blockDroneEmergency"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"takeoff"}],"next":{"func":"blockDroneTakeOff","next":{"func":"blockControlWait","values":[{"type":"number","value":"1000"}]}}} Add to my Backpack


{"func":"blockDroneSetSpeed"}

Set Speed

Use "Set Speed" to set Parrot drone to the specified speed.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockDroneSetSpeed","values":[{"type":"number","value":"50"}]}} Add to my Backpack


{"func":"blockDroneForward"}

Fly Forward

"Fly Forward" moves the Parrot drone forward at the specified speed.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"forward"}],"next":{"func":"blockDroneForward","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneLand"}

Aterrizar

"Aterrizar" hace que el dron Parrot aterrice.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneTakeOff"} ,     {"func":"blockDroneEmergency"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"land"}],"next":{"func":"blockDroneLand"}} Add to my Backpack


{"func":"blockDroneStop"}

Detener

"Detener" detiene el movimiento del dron Parrot y lo pone en modo flotante.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneTakeOff"} ,     {"func":"blockDroneLand"} ,     {"func":"blockDroneEmergency"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"stop"}],"next":{"func":"blockDroneStop"}} Add to my Backpack


{"func":"blockDroneBackward"}

Fly Backward

"Fly Backward" moves the Parrot drone backward at the specified speed.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"backward"}],"next":{"func":"blockDroneBackward","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneEmergency"}

Emergencia

"Emergencia" corta la energía del dron Parrot.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneTakeOff"} ,     {"func":"blockDroneLand"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"emergency"}],"next":{"func":"blockDroneEmergency"}} Add to my Backpack


{"func":"blockDroneLeft"}

Bank Left

"Bank Left" moves the Parrot drone left at the specified speed.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"left"}],"next":{"func":"blockDroneLeft","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneRight"}

Bank Right

"Bank Right" moves the Parrot drone right at the specified speed.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"right"}],"next":{"func":"blockDroneRight","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneSetSpeed"}

Fijar velocidad

Utiliza "fijar velocidad" parra configurar el dron Parrot a la velocidad especificada.

Parameters:

Velocidad: porcentaje de velocidad.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockDroneSetSpeed","values":[{"type":"number","value":"50"}]}} Add to my Backpack


{"func":"blockDroneTurnCW"}

Turn Clockwise

"Turn Clockwise" turns the Parrot drone clockwise at the specified angle.

Parameters:

Angle: number of degrees to turn clockwise

Related Blocks:
{"func":"blockDroneTurnCCW"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn right"}],"next":{"func":"blockDroneTurnCW","values":[{"type":"string","value":30}]}} Add to my Backpack


{"func":"blockDroneForward"}

Hacia adelante durante

"Hacia adelante durante" mueve al dron Parrot hacia adelante durante el número especificado de segundos.

Parameters:

Tiempo: en segundos.

Related Blocks:
{"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"forward"}],"next":{"func":"blockDroneForward","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneBackward"}

Hacia atras durante

"Hacia atrás durante" mueve al dron Parrot hacia atrás durante el número especificado de segundos.

Parameters:

Tiempo: en segundos.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"backward"}],"next":{"func":"blockDroneBackward","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneTurnCCW"}

Turn Counter-Clockwise

"Turn Counter-Clockwise" turns the Parrot drone counter-clockwise at the specified angle.

Parameters:

Angle: number of degrees to turn clockwise

Related Blocks:
{"func":"blockDroneTurnCW"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn left"}],"next":{"func":"blockDroneTurnCCW","values":[{"type":"string","value":30}]}} Add to my Backpack


{"func":"blockDroneAnimation"}

Flip

Use "Flip" to flip the Parrot drone while flying.

Parameters:

Direction: direction to flip - forward, backward, left or right.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"back flip"}],"next":{"func":"blockDroneAnimation","values":[{"type":"string","value":"flip backward"}]}} Add to my Backpack


{"func":"blockDroneLeft"}

Hacia la izquierda durante

"Hacia la izquierda durante" hace que el dron Parrot se mueva a la izquierda durante el número especificado de segundos.

Parameters:

Tiempo: en segundos.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"left"}],"next":{"func":"blockDroneLeft","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneRight"}

Hacia la derecha durante

"Hacia la derecha durante" hace que el dron Parrot se mueva hacia la derecha durante el número especificado de segundos.

Parameters:

Tiempo: en segundos.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"right"}],"next":{"func":"blockDroneRight","values":[{"type":"number","value":"1"}]}} Add to my Backpack


{"func":"blockDroneUp"}

Fly Up

"Fly Up" moves the Parrot drone upwards.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneDown"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"rise"}],"next":{"func":"blockDroneUp","values":[{"type":"number","value":".5"}]}} Add to my Backpack


{"func":"blockDroneTurnCW"}

Girar a la derecha

"Girar a la derecha" hace que el dron Parrot gire en sentido horario hasta el ángulo especificado.

Parameters:

Ángulo: el número de grados que debe girar en sentido horario.

Related Blocks:
{"func":"blockDroneTurnCCW"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn right"}],"next":{"func":"blockDroneTurnCW","values":[{"type":"string","value":30}]}} Add to my Backpack


{"func":"blockDroneDown"}

Fly Down

"Fly Down" moves the Parrot drone downwards.

Parameters:

Speed: percentage speed

Related Blocks:
{"func":"blockDroneUp"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"lower"}],"next":{"func":"blockDroneDown","values":[{"type":"number","value":".5"}]}} Add to my Backpack


{"func":"blockDroneTurnCCW"}

Girar a la izquierda

"Girar a la izquierda" hace que el dron Parrot gire en sentido antihorario hasta el ángulo especificado.

Parameters:

Ángulo: el número de grados que debe girar en sentido antihorario.

Related Blocks:
{"func":"blockDroneTurnCW"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn left"}],"next":{"func":"blockDroneTurnCCW","values":[{"type":"string","value":30}]}} Add to my Backpack


{"func":"valueDroneConnected"}

Connected?

"Connected?" returns true if connected to Parrot drone; otherwise returns false.

Parameters:

None.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneConnected"}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"ready"}]}]} Add to my Backpack


{"func":"blockDroneAnimation"}

Voltear

Utiliza "voltear" para hacer que el dron Parrot dé una vuelta sobre sí mismo mientras vuela.

Parameters:

Dirección: la dirección en la que dará la vuelta - hacia adelante, hacia atrás, a la izquierda o a la derecha.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"back flip"}],"next":{"func":"blockDroneAnimation","values":[{"type":"string","value":"flip backward"}]}} Add to my Backpack


{"func":"blockDroneStartUp"}

Start Moving Up

"Start Moving Up" starts the Parrot drone moving up. The drone continues moving up until it receives a "Stop", a "Start Moving Down", a "Move Down For", or an "Emergency" command.

Parameters:

None.

Related Blocks:
{"func":"blockDroneUp"} ,     {"func":"blockDroneDown"} ,     {"func":"blockDroneStartDown"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"up"}],"next":{"func":"blockDroneStartUp"}} Add to my Backpack


{"func":"blockDroneUp"}

Hacia arriba durante

"Hacia arriba durante" mueve al dron Parrot hacia arriba durante el número de segundos especificado.

Parameters:

Tiempo: en segundos.

Related Blocks:
{"func":"blockDroneDown"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"rise"}],"next":{"func":"blockDroneUp","values":[{"type":"number","value":".5"}]}} Add to my Backpack


{"func":"blockDroneStartDown"}

Start Moving Down

"Start Moving Down" starts the Parrot drone moving down. The drone continues moving down until it receives a "Stop", a "Start Moving Up", a "Move Up For", or an "Emergency" command.

Parameters:

None.

Related Blocks:
{"func":"blockDroneDown"} ,     {"func":"blockDroneUp"} ,     {"func":"blockDroneStartUp"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"down"}],"next":{"func":"blockDroneStartDown"}} Add to my Backpack


{"func":"blockDroneDown"}

Hacia abajo durante

"Hacia abajo durante" mueve al dron Parrot hacia abajo durante el número de segundos especificado.

Parameters:

Tiempo: en segundos.

Related Blocks:
{"func":"blockDroneUp"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"lower"}],"next":{"func":"blockDroneDown","values":[{"type":"number","value":".5"}]}} Add to my Backpack


{"func":"blockDroneStartRotateLeft"}

Start Rotating Left

"Start Rotating Left" starts the Parrot drone rotating counter-clockwise. The drone continues rotating until it receives a "Stop", a "Start Rotating Right", a "Rotate Right", or an "Emergency" command.

Parameters:

None.

Related Blocks:
{"func":"blockDroneStartRotateRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"rotate left"}],"next":{"func":"blockDroneStartRotateLeft"}} Add to my Backpack


{"func":"blockDroneStartRotateRight"}

Start Rotating Right

"Start Rotating Right" starts the Parrot drone rotating counter-clockwise. The drone continues rotating until it receives a "Stop", a "Start Rotating Left", a "Rotate Left", or an "Emergency" command.

Parameters:

None.

Related Blocks:
{"func":"blockDroneStartRotateLeft"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"rotate right"}],"next":{"func":"blockDroneStartRotateRight"}} Add to my Backpack


{"func":"valueDroneConnected"}

¿Está conectado?

"¿Está conectado?" devuelve un valor verdadero si está conectado al dron Parrot; de lo contrario, devuelve un valor falso.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneForward"} ,     {"func":"blockDroneBackward"} ,     {"func":"blockDroneLeft"} ,     {"func":"blockDroneRight"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneConnected"}],"containers":[{"func":"blockControlBroadcast","values":[{"type":"string","value":"ready"}]}]} Add to my Backpack


{"func":"blockDroneSetProductName"}

Set Drone Name To

"Set Drone Name To" changes the name of the Parrot drone. After running this block, turn the drone off. Then turn the drone back on and it will have a new name.

Parameters:

String: The new name of the drone.

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneSetProductName","values":[{"type":"string","value":"Codey"}],"containers":[]}} Add to my Backpack


{"func":"blockDroneStartUp"}

Iniciar movimiento hacia arriba

"Iniciar movimiento hacia arriba" hace que el dron Parrot comience a moverse hacia arriba. El dron continúa moviéndose hacia arriba hasta que reciba un comando "Detener", "Iniciar movimiento hacia abajo", "Mover hacia abajo durante" o "Emergencia".

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneUp"} ,     {"func":"blockDroneDown"} ,     {"func":"blockDroneStartDown"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"up"}],"next":{"func":"blockDroneStartUp"}} Add to my Backpack


{"func":"blockDroneTakePicture"}

Take Picture

"Take Picture" takes a picture with the drone's camera. If the camera is busy, no picture will be taken. The picture is saved on the drone. To copy the picture to your tablet, use "Fetch Picture From Drone."

Parameters:

None.

Related Blocks:
{"func":"blockDroneFetchPicture"} ,     {"func":"blockDroneDeletePicture"} ,     {"func":"blockDroneVarSetNumPictures"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneTakePicture"}} Add to my Backpack


{"func":"blockDroneStartDown"}

Iniciar movimiento hacia abajo

"Iniciar movimiento hacia abajo" hace que el dron Parrot comience a moverse hacia abajo. El dron continúa moviéndose hacia arriba hasta que reciba un comando "Detener", "Iniciar movimiento hacia arriba", "Mover hacia arriba durante" o "Emergencia".

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneDown"} ,     {"func":"blockDroneUp"} ,     {"func":"blockDroneStartUp"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"down"}],"next":{"func":"blockDroneStartDown"}} Add to my Backpack


{"func":"blockDroneFetchPicture"}

Fetch Picture From Drone

"Fetch Picture From Drone" copies the most recently taken picture from the drone to the tablet's Photos. Coping a picture can take 10 seconds or longer. This block does nothing if a picture is already being fetched.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTakePicture"} ,     {"func":"blockDroneDeletePicture"} ,     {"func":"blockDroneVarSetNumPictures"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Fetching picture..."}],"containers":[],"next":{"func":"blockDroneFetchPicture","values":[],"containers":[],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Finished fetching picture."}],"containers":[]}}}} Add to my Backpack


{"func":"blockDroneStartRotateLeft"}

Iniciar rotación a izquierda

"Iniciar rotación a izquierda" hace que el dron Parrot comience a girar en sentido antihorario. El dron continúa moviéndose hasta que reciba un comando "Detener", "Iniciar rotación a derecha", "girar a la derecha" o "Emergencia".

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneStartRotateRight"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"rotate left"}],"next":{"func":"blockDroneStartRotateLeft"}} Add to my Backpack


{"func":"blockDroneStartRotateRight"}

Iniciar rotación a derecha

"Iniciar rotación a derecha" hace que el dron Parrot comience a girar en sentido horario. El dron continúa moviéndose hasta que reciba un comando "Detener", "Iniciar rotación a izquierda", "girar a la izquierda" o "Emergencia".

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneStartRotateLeft"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"rotate right"}],"next":{"func":"blockDroneStartRotateRight"}} Add to my Backpack


{"func":"blockDroneDeletePicture"}

Delete Picture On Drone

"Delete Picture On Drone" deletes the most recently taken picture from the drone.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTakePicture"} ,     {"func":"blockDroneFetchPicture"} ,     {"func":"blockDroneVarSetNumPictures"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneDeletePicture"}} Add to my Backpack


{"func":"blockDroneSetProductName"}

Establecer nombre de dron como

"Establecer nombre de dron como" cambia el nombre del dron Parrot. Luego de ejecutar este bloque, apaga al dron. Luego, vuelve a encender el dron y tendrá su nuevo nombre.

Parameters:

Cadena: el nuevo nombre del dron.

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneSetProductName","values":[{"type":"string","value":"Codey"}],"containers":[]}} Add to my Backpack


{"func":"blockDroneVarSetNumPictures"}

Set variable to Number of Pictures on Drone

"Set variable to Number of Pictures on Drone" downloads the number of pictures on a drone. This number is saved to a variable.

Parameters:

None.

Related Blocks:
{"func":"blockDroneTakePicture"} ,     {"func":"blockDroneFetchPicture"} ,     {"func":"blockDroneDeletePicture"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockControlScriptVar","label":"","values":[{"type":"wrapper","func":"valueScriptVar","name":"count"}],"containers":[],"next":{"func":"blockDroneVarSetNumPictures","values":[{"type":"wrapper","func":"valueScriptVar","name":"count"}],"containers":[],"next":{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueScriptVar","name":"count"}],"containers":[]}}}} Add to my Backpack


{"func":"blockDroneTakePicture"}

Tomar una foto

"Tomar una foto" toma una fotografía con la cámara del dron. Si la cámara está ocupada, no se tomará ninguna foto. La foto se guarda en el dron. Para copiar la foto a tu tableta, utiliza el comando "Obtener foto del dron".

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneFetchPicture"} ,     {"func":"blockDroneDeletePicture"} ,     {"func":"blockDroneVarSetNumPictures"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneTakePicture"}} Add to my Backpack


{"func":"valueDroneHasGrabber"}

Has Grabber?

"Has Grabber?" returns true if a Parrot Mambo drone has a grabber. It returns false otherwise.

Parameters:

None.

Related Blocks:
{"func":"blockDroneControlGrabber"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasGrabber","values":[]}],"containers":[{"func":"blockDroneControlGrabber","values":[{"type":"string","value":"close"}],"containers":[]}]} Add to my Backpack


{"func":"blockDroneFetchPicture"}

Obtener foto de dron

"Obtener foto de dron" copia la foto más reciente del dron a la galería de la tablet. Copiar una foto puede tomar más de 10 segundos. Este bloque no hace nada si una foto ya se obtuvo.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneTakePicture"} ,     {"func":"blockDroneDeletePicture"} ,     {"func":"blockDroneVarSetNumPictures"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Fetching picture..."}],"containers":[],"next":{"func":"blockDroneFetchPicture","values":[],"containers":[],"next":{"func":"blockLooksSay","values":[{"type":"string","value":"Finished fetching picture."}],"containers":[]}}}} Add to my Backpack


{"func":"blockDroneControlGrabber"}

Control Grabber

"Control Grabber" opens or closes the grabber.

Parameters:

Grabber command: Either "Open" or "Close".

Related Blocks:
{"func":"valueDroneHasGrabber"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasGrabber","values":[]}],"containers":[{"func":"blockDroneControlGrabber","values":[{"type":"string","value":"close"}],"containers":[]}]} Add to my Backpack


{"func":"blockDroneDeletePicture"}

Borrar foto del dron

"Borrar foto del dron" eliminar la última foto tomada por el dron.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneTakePicture"} ,     {"func":"blockDroneFetchPicture"} ,     {"func":"blockDroneVarSetNumPictures"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneDeletePicture"}} Add to my Backpack


{"func":"valueDroneHasCannon"}

Has Cannon?

"Has Cannon?" returns true if a Parrot Mambo drone has a cannon. It returns false otherwise.

Parameters:

None.

Related Blocks:
{"func":"blockDroneControlCannon"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasCannon","values":[]}],"containers":[{"func":"blockDroneControlCannon","values":[],"containers":[]}]} Add to my Backpack


{"func":"blockDroneVarSetNumPictures"}

Fijar variable al número de fotos del dron

"Fijar variable al numero de fotos del dron" obtiene la cantidad de fotos que hay en el dron. Este número es luego guardado en una variable.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneTakePicture"} ,     {"func":"blockDroneFetchPicture"} ,     {"func":"blockDroneDeletePicture"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockControlScriptVar","label":"","values":[{"type":"wrapper","func":"valueScriptVar","name":"count"}],"containers":[],"next":{"func":"blockDroneVarSetNumPictures","values":[{"type":"wrapper","func":"valueScriptVar","name":"count"}],"containers":[],"next":{"func":"blockLooksSay","values":[{"type":"wrapper","func":"valueScriptVar","name":"count"}],"containers":[]}}}} Add to my Backpack


{"func":"blockDroneControlCannon"}

Fire Cannon

"Fire Cannon" launches a ball from the cannon.

Parameters:

None.

Related Blocks:
{"func":"valueDroneHasCannon"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasCannon","values":[]}],"containers":[{"func":"blockDroneControlCannon","values":[],"containers":[]}]} Add to my Backpack


{"func":"blockDroneSetFlyingMode"}

Set Flying Mode

"Set Flying Mode" changes the Swing from a quadcopter to a plane. Once the Swing enters plane mode, it will immediately start flying. It will keep on flying until your program excutes a quadcopter block or you stop your program.

Parameters:

Flying mode: Either "Quadcopter", "Plane Forward" or "Plane Backwards".

Related Blocks:
{"func":"blockDroneSetFlyingMode"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneTakeOff","values":[],"containers":[],"next":{"func":"blockDroneSetFlyingMode","values":[{"type":"string","value":"plane forward"}],"containers":[]}}} Add to my Backpack


{"func":"valueDroneHasGrabber"}

¿Posee pinzas?

"¿Posee pinzas?" devuelve un valor verdadero si el dron Mambo Parrot tiene pinzas. De lo contrario, devuelve un valor falso.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneControlGrabber"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasGrabber","values":[]}],"containers":[{"func":"blockDroneControlGrabber","values":[{"type":"string","value":"close"}],"containers":[]}]} Add to my Backpack


{"func":"blockDroneControlGrabber"}

Control pinzas

"Control pinzas" abre o cierra las pinzas.

Parameters:

Comando de pinzas: "abrir" o "cerrar".

Related Blocks:
{"func":"valueDroneHasGrabber"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasGrabber","values":[]}],"containers":[{"func":"blockDroneControlGrabber","values":[{"type":"string","value":"close"}],"containers":[]}]} Add to my Backpack


{"func":"valueDroneHasCannon"}

¿Posee un cañón?

"¿Posee un cañón?" devuelve un valor verdadero si el dron Mambo Parrot posee un cañón. De lo contrario, devuelve un valor falso.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockDroneControlCannon"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasCannon","values":[]}],"containers":[{"func":"blockDroneControlCannon","values":[],"containers":[]}]} Add to my Backpack


{"func":"blockDroneControlCannon"}

Disparar cañón

"Disparar cañón" dispara una bola con el cañón.

Parameters:

Ninguno.

Related Blocks:
{"func":"valueDroneHasCannon"}

Sample Code:
{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueDroneHasCannon","values":[]}],"containers":[{"func":"blockDroneControlCannon","values":[],"containers":[]}]} Add to my Backpack


{"func":"blockDroneSetFlyingMode"}

Establecer modo de vuelo

"Establecer modo de vuelo" cambia la forma de vuelo del Swing de cuadricóptero a avión. Una vez que el Swing entra en modo avión, comienza a volar de inmediato. Continuará volando hasta que tu programa ejecute un bloque de cuadricóptero, o que detengas tu programa.

Parameters:

Modo de vuelo: "Cuadricóptero", "Avión hacia adelante" o "Avión hacia atrás".

Related Blocks:
{"func":"blockDroneSetFlyingMode"}

Sample Code:
{"func":"registerSpriteTrigger","values":[],"containers":[],"next":{"func":"blockDroneTakeOff","values":[],"containers":[],"next":{"func":"blockDroneSetFlyingMode","values":[{"type":"string","value":"plane forward"}],"containers":[]}}} Add to my Backpack



Hue

{"func":"blockPlayerSetFire","values":[{"type":"string","value":"add player block here"},{"type":"number","value":"0"}]}

Set Player on Fire

"Set Player on Fire" is a block that sets a player on fire for the specified number of seconds.

Parameters:

Player: This indicates which player to set on fire.

Seconds: This sets the duration of the fire.

Related Blocks:
{"func":"blockPlayerAddEffect"}

Sample Code:
{"func":"registerEntityInteract","values":[{"type":"wrapper","func":"valueParam","name":"player"},{"type":"wrapper","func":"valueParam","name":"entity"},{"type":"wrapper","func":"valueParam","name":"location"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueBlockIsEntityType","values":[{"type":"wrapper","func":"valueParam","name":"entity"},{"type":"string","value":"player"}]}],"containers":[{"func":"blockPlayerSetFire","values":[{"type":"wrapper","func":"valueParam","name":"entity"},{"type":"number","value":5}]}]}} Add to my Backpack


{"func":"blockHueState"}

Turn Light On/Off

"Turn Light On/Off" turns the Philips Hue light on (true) or off (false).

Parameters:

State: true - on, false - off

Related Blocks:
{"func":"valueHueState"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}]}} Add to my Backpack


{"func":"valueHueState"}

On?

"On?" returns whether the Philips Hue light is on (true) or off (false).

Parameters:

None.

Related Blocks:
{"func":"blockHueState"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn off"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueHueState"}],"containers":[{"func":"blockHueState","values":[{"type":"boolean","value":"false"}]}]}} Add to my Backpack


{"func":"blockHueColor"}

Set Color

"Set Color" sets the RGB color for the Philips Hue light.

Parameters:

Color: This is the color value

Related Blocks:
{"func":"blockHueSetHue"} ,     {"func":"blockHueChangeHue"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockHueColor","values":[{"type":"color","value":"#ff0000"}]}}} Add to my Backpack


{"func":"blockHueSetHue"}

Set Color Hue

"Set Color Hue" sets the color hue for the Philips Hue light.

Parameters:

Hue: color hue from 0-100

Related Blocks:
{"func":"blockHueColor"} ,     {"func":"blockHueChangeHue"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockHueSetHue","values":[{"type":"number","value":"35"}]}}} Add to my Backpack


{"func":"blockHueChangeHue"}

Change Color Hue By

"Change Color Hue By" changes the color hue for the Philips Hue light.

Parameters:

Amount: amount to change the hue by

Related Blocks:
{"func":"blockHueColor"} ,     {"func":"blockHueSetHue"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"red"}],"next":{"func":"blockHueChangeHue","values":[{"type":"number","value":"-5"}]}} Add to my Backpack


{"func":"blockHueBrightness"}

Set Brightness

"Set Brightness" sets the brightness for the Philips Hue light.

Parameters:

Brightness: the brightness (0-100)

Related Blocks:
{"func":"valueHueBrightness"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockHueBrightness","values":[{"type":"number","value":"100"}]}}} Add to my Backpack


{"func":"valueHueBrightness"}

Brightness

"Brightness" returns the current Philips Hue light brightness (from 0-100).

Parameters:

None.

Related Blocks:
{"func":"blockHueBrightness"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"dim"}],"next":{"func":"blockHueBrightness","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueHueBrightness"},{"type":"choice","value":"-"},{"type":"string","value":"10"}]}]}} Add to my Backpack


{"func":"blockHueState"}

Encender luces

"Encender luces" enciende (verdadero) o apaga (falso) las luces del Philips Hue.

Parameters:

Estado: verdadero - encendido, falso - apagado.

Related Blocks:
{"func":"valueHueState"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}]}} Add to my Backpack


{"func":"valueHueState"}

¿Están encendidas?

"¿Están encendidas?" devuelve un valor verdadero si las luces Philips Hue están encendidas, y un valor falso en caso contrario.

Parameters:

Ninguno.

Related Blocks:
{"func":"blockHueState"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"turn off"}],"next":{"func":"blockControlIf","values":[{"type":"wrapper","func":"valueHueState"}],"containers":[{"func":"blockHueState","values":[{"type":"boolean","value":"false"}]}]}} Add to my Backpack


{"func":"blockHueColor"}

Establecer color

"Establecer color" configura el color RGB de la luz Philips Hue.

Parameters:

Color: el valor de color.

Related Blocks:
{"func":"blockHueSetHue"} ,     {"func":"blockHueChangeHue"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockHueColor","values":[{"type":"color","value":"#ff0000"}]}}} Add to my Backpack


{"func":"blockHueSetHue"}

Establecer intensidad de color

"Establecer intensidad de color" establece la intensidad del color de la luz Philips Hue.

Parameters:

Intensidad: intensidad de color de 0 a 100.

Related Blocks:
{"func":"blockHueColor"} ,     {"func":"blockHueChangeHue"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockHueSetHue","values":[{"type":"number","value":"35"}]}}} Add to my Backpack


{"func":"blockHueChangeHue"}

Cambiar intensidad de color en

"Cambiar intensidad de color en" cambia la intensidad del color de la luz Philips Hue.

Parameters:

Cantidad: cantidad de cambio del valor de intensidad.

Related Blocks:
{"func":"blockHueColor"} ,     {"func":"blockHueSetHue"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"red"}],"next":{"func":"blockHueChangeHue","values":[{"type":"number","value":"-5"}]}} Add to my Backpack


{"func":"blockHueBrightness"}

Establecer brillo

"Establecer brillo" establece el brillo de la luz Philips Hue.

Parameters:

Brillo: el valor del brillo, de 0 a 100.

Related Blocks:
{"func":"valueHueBrightness"}

Sample Code:
{"func":"registerFlagTrigger","next":{"func":"blockHueState","values":[{"type":"boolean","value":"true"}],"next":{"func":"blockHueBrightness","values":[{"type":"number","value":"100"}]}}} Add to my Backpack


{"func":"valueHueBrightness"}

Brillo

"Brillo" devuelve el valor del brillo de la luz Philips Hue (de 0 a 100).

Parameters:

Ninguno.

Related Blocks:
{"func":"blockHueBrightness"}

Sample Code:
{"func":"registerBroadcastTrigger","values":[{"type":"string","value":"dim"}],"next":{"func":"blockHueBrightness","values":[{"type":"wrapper","func":"valueOpBinary","values":[{"type":"wrapper","func":"valueHueBrightness"},{"type":"choice","value":"-"},{"type":"string","value":"10"}]}]}} Add to my Backpack


{"type":"wrapper","func":"valueTynkerVMLightVisible","values":[]}

Get Visible Light

"Get Visible Light" returns the current ambient light surrounding the micro:bit.

Parameters:

None.

Related Blocks:
{"func":"valueTynkerVMAccel"} ,     {"func":"valueTynkerVMTemperature"} ,     {"func":"valueTynkerVMLightIR"}

Sample Code:
{"func":"registerFlagTrigger","values":[],"next":{"func":"blockVarSet","values":[{"type":"string","value":"temperature"},{"type":"wrapper","func":"valueTynkerVMTemperature","values":[]}],"next":{"func":"blockVarSet","values":[{"type":"string","value":"accel_x"},{"type":"wrapper","func":"valueTynkerVMAccel","values":[{"type":"choice","value":"x"}]}],"next":{"func":"blockVarSet","values":[{"type":"string","value":"visible_light"},{"type":"wrapper","func":"valueTynkerVMLightVisible","values":[]}],"next":{"func":"blockVarSet","values":[{"type":"string","value":"infrared_light"},{"type":"wrapper","func":"valueTynkerVMLightIR","values":[]}]}}}}} Add to my Backpack


{"type":"wrapper","func":"valueTynkerVMLightIR","values":[]}

Get Infrared Light

"Get Infrared Light" returns the current ambient infrared light surrounding the micro:bit.

Parameters:

None.

Related Blocks:
{"func":"valueTynkerVMAccel"} ,     {"func":"valueTynkerVMTemperature"} ,     {"func":"valueTynkerVMLightVisible"}

Sample Code:
{"func":"registerFlagTrigger","values":[],"next":{"func":"blockVarSet","values":[{"type":"string","value":"temperature"},{"type":"wrapper","func":"valueTynkerVMTemperature","values":[]}],"next":{"func":"blockVarSet","values":[{"type":"string","value":"accel_x"},{"type":"wrapper","func":"valueTynkerVMAccel","values":[{"type":"choice","value":"x"}]}],"next":{"func":"blockVarSet","values":[{"type":"string","value":"visible_light"},{"type":"wrapper","func":"valueTynkerVMLightVisible","values":[]}],"next":{"func":"blockVarSet","values":[{"type":"string","value":"infrared_light"},{"type":"wrapper","func":"valueTynkerVMLightIR","values":[]}]}}}}} Add to my Backpack