BlocosIA Wiki Editor

3D World

3D block (voxel) games: generated world or built in the 3D editor, first or third person player, break and place blocks, inventory, health, day and night and 3D bodies for sprites.

Open the 3D world editor with the button in the category. When playing: click the stage to look with the mouse (Esc releases), W A S D walk, space jumps. On phones: drag to look, quick tap places and hold to break.

To use it: in the editor, click "Extensions" (bottom corner) and add "3D World".

Hat

when [left (break/hit)] mouse button clicked in the 3D world

Starts when the player clicks in the 3D world with the left (break/hit) or right (place/use) button. On phones: hold = left, quick tap = right.

Hat

when the player falls from too high

Starts when the player falls more than 3 blocks. Use "height of last fall" to compute the damage.

Hat

when the player's health runs out

Starts when the player's health reaches zero.

Stack

3D world: [show]

Does an action. Snap it below another block.

Stack

generate [hills] world with seed ( ) size [medium (64)]

Creates a new world by code: hills, flat, mountains, island, desert, snow or caves. The same seed always makes the same world.

Stack

reset the world to how it was saved in the editor

Does an action. Snap it below another block.

Stack

place [ ▾ ] at x: ( ) y: ( ) z: ( )

Places a block (or "air" to erase) at the x, y, z position of the world. y is the height.

Stack

fill from x: ( ) y: ( ) z: ( ) to x: ( ) y: ( ) z: ( ) with [ ▾ ]

Does an action. Snap it below another block.

Reporter

block at x: ( ) y: ( ) z: ( )

Name of the block at the x, y, z position (empty if it is air).

Reporter

ground height at x: ( ) z: ( )

Gives a number or text. Put it inside a round slot.

Reporter

world size: [width (x)]

Gives a number or text. Put it inside a round slot.

Hat

when [nightfall]

Starts once at nightfall or at dawn (with the day/night cycle on).

Stack

time of day: ( )

Does an action. Snap it below another block.

Stack

day/night cycle: one day lasts ( ) seconds

Turns on the day/night cycle: the sun moves across the sky and the light changes. 0 keeps the time still.

Reporter

time of day

Gives a number or text. Put it inside a round slot.

Boolean

is it night?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

view distance ( ) blocks

Does an action. Snap it below another block.

Stack

clouds: [yes]

Does an action. Snap it below another block.

Stack

player controls: [keyboard (WASD) and mouse]

Turns on the ready-made controls: W A S D walk, space jumps, the mouse looks (click the stage; Esc releases).

Stack

camera: [first person]

First person (see through the eyes), third person (see the character from behind) or fixed camera.

Stack

fixed camera at x: ( ) y: ( ) z: ( ) looking at x: ( ) y: ( ) z: ( )

Does an action. Snap it below another block.

Stack

field of view ( ) degrees

Does an action. Snap it below another block.

Stack

player go to x: ( ) y: ( ) z: ( )

Does an action. Snap it below another block.

Stack

player return to the start point

Does an action. Snap it below another block.

Stack

set start point where the player is

Does an action. Snap it below another block.

Stack

player look at direction ( ) tilt ( )

Does an action. Snap it below another block.

Stack

player turn ( ) degrees

Does an action. Snap it below another block.

Stack

player walk ( ) blocks forward

Does an action. Snap it below another block.

Stack

player jump

Does an action. Snap it below another block.

Stack

player speed ( )

Does an action. Snap it below another block.

Stack

player jump strength ( )

Does an action. Snap it below another block.

Stack

player can fly (double space): [yes]

Does an action. Snap it below another block.

Stack

auto-jump steps: [yes]

Does an action. Snap it below another block.

Stack

player appearance (third person): [ ▾ ]

In third person, the player uses the 3D model (or the costumes) of a sprite.

Stack

push the player x: ( ) y: ( ) z: ( )

Does an action. Snap it below another block.

Reporter

player [x]

Gives a number or text. Put it inside a round slot.

Boolean

player [on the ground] ?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

height of last fall

Gives a number or text. Put it inside a round slot.

Boolean

[left] mouse button pressed?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Boolean

is a block targeted?

True when the center of the screen points at a block within reach.

Reporter

targeted block

Gives a number or text. Put it inside a round slot.

Reporter

target [x]

Gives a number or text. Put it inside a round slot.

Stack

crack on targeted block: ( ) %

Shows cracks on the targeted block (0 to 100%). Use it while the left button is held to break slowly.

Stack

break the targeted block

Breaks the targeted block, with particles.

Boolean

can I place a block in front of the target?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

place ( ) in front of the target

Places a block against the face you are aiming at (never inside the player or 3D bodies).

Reporter

hardness of ( ) (seconds)

How many seconds it takes to break the block by hand (-1 = unbreakable).

Reporter

what ( ) drops when broken

What the block leaves in the inventory when broken (stone drops cobblestone, grass drops dirt, leaves drop nothing).

Stack

target reach ( ) blocks

Does an action. Snap it below another block.

Stack

show [hotbar] : [yes]

Shows or hides parts of the game screen: 9-slot hotbar, hearts, crosshair, hand and coordinates.

Reporter

[ ▾ ]

Gives a number or text. Put it inside a round slot.

Stack

store ( ) ( ) in the inventory

Stores items in the hotbar (up to 64 per slot). Keys 1 to 9 and the wheel choose the item in hand.

Stack

remove ( ) ( ) from the inventory

Does an action. Snap it below another block.

Reporter

amount of ( ) in the inventory

Gives a number or text. Put it inside a round slot.

Reporter

item in hand

Name of the item the player is holding (the chosen hotbar slot).

Stack

hold hotbar slot ( )

Does an action. Snap it below another block.

Reporter

selected hotbar slot

Gives a number or text. Put it inside a round slot.

Stack

empty the inventory

Does an action. Snap it below another block.

Stack

player health: ( ) of ( )

Does an action. Snap it below another block.

Stack

change player health by ( )

Changes the player's health (each heart is worth 2). Losing health flashes the screen red.

Reporter

player health

Gives a number or text. Put it inside a round slot.

Stack

become 3D body: [person] color [default] size ( ) %

Gives the sprite (and each clone) a 3D body: person, zombie, pig, sheep, cow, chicken, spider, cube, sphere or its own costume as a billboard.

Stack

stop being a 3D body

Does an action. Snap it below another block.

Stack

go to x: ( ) y: ( ) z: ( ) (3D)

Does an action. Snap it below another block.

Stack

go to a spot on the ground ( ) blocks from the player

Moves the body to a spot on the ground at some distance from the player (good for spawning enemies).

Stack

change [x] by ( ) (3D)

Does an action. Snap it below another block.

Stack

walk ( ) blocks forward (3D)

Does an action. Snap it below another block.

Stack

turn ( ) degrees (3D)

Does an action. Snap it below another block.

Stack

point in direction ( ) (3D)

Does an action. Snap it below another block.

Stack

point towards the player (3D)

Does an action. Snap it below another block.

Stack

walk towards the player at speed ( ) (3D)

One step towards the player, with collision: jumps steps and goes around walls. Use it inside "forever".

Stack

run away from the player at speed ( ) (3D)

Does an action. Snap it below another block.

Stack

wander around at speed ( ) (0 = stop)

The body wanders in random directions, stopping now and then (like animals).

Stack

3D gravity: [yes]

Does an action. Snap it below another block.

Stack

jump with strength ( ) (3D)

Does an action. Snap it below another block.

Boolean

am I [touching the player] ? (3D)

Asks whether this body is touching the player, targeted, on the ground, in water or seeing the player (no wall in between).

Reporter

my [x] (3D)

Gives a number or text. Put it inside a round slot.

Stack

get pushed away from the player with strength ( )

Does an action. Snap it below another block.

Stack

push the player away from me with strength ( )

Does an action. Snap it below another block.

Stack

flash red (3D)

Does an action. Snap it below another block.

Stack

play the 3D animation ( ) [looping]

Plays an animation of the imported 3D model (looping or once).

Stack

automatic 3D animation: ( ) still and ( ) walking

The 3D model plays the idle or walking animation by itself as it moves (and "pular" in the air, if it exists).

Boolean

did the 3D animation end?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Stack

my health (3D): ( )

Does an action. Snap it below another block.

Stack

change my health (3D) by ( )

Does an action. Snap it below another block.