CraftStudio Wiki

Scripting Reference/BlockOrientation

< Scripting Reference

56pages on
this wiki
Add New Page
Comments0 Share

Map.BlockOrientation EnumerationEdit

This enumeration is used to define the direction a block is facing. When creating a block, each "face" of the block is assigned to a specific direction.


Member name Description
North The block is facing north from an overhead perspective
East The block is facing east from an overhead perspective


The block is facing south from an overhead perspective


The block is facing west from an overhead perspective 


local map = self.gameObject:GetComponent ("MapRenderer"):GetMap()

map:SetBlockAt (0, 0, 0, 0, Map.BlockOrientation.North)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.