Dokumentation
block
typePaper
A block in a world.
Egenskaber 13
block.type: text
kan ændresPaper
Block type, such as stone. Assign a type name to change the block.
block.x: number
skrivebeskyttetPaper
X coordinate.
block.y: number
skrivebeskyttetPaper
Y coordinate.
block.z: number
skrivebeskyttetPaper
Z coordinate.
block.location: location
skrivebeskyttetPaper
Location of the block.
block.world: world
skrivebeskyttetPaper
The world.
block.light: number
skrivebeskyttetPaper
Light level at the block, 0 to 15.
block.power: number
skrivebeskyttetPaper
Redstone power reaching the block, 0 to 15.
block.is_air: bool
skrivebeskyttetPaper
True for air.
block.is_solid: bool
skrivebeskyttetPaper
True if entities cannot walk through it.
block.is_liquid: bool
skrivebeskyttetPaper
True for water and lava.
block.biome: text
skrivebeskyttetPaper
Biome at the block, such as plains.
block.data: text
kan ændresPaper
Full block state, e.g. minecraft:oak_stairs[facing=north]. Assign to change it.
Metoder 2
The block that many steps away, e.g. block.relative(0, 1, 0) is the one above.
block.destroy()
Paper
Breaks the block and drops its items.