-
Notifications
You must be signed in to change notification settings - Fork 0
Block
Represents a block in the world. Provides information about its state, position, light levels, and properties.
Returns the item/block name as a string.
-
Returns:
String— e.g."minecraft:stone","minecraft:grass_block"
make block player.getSteppingBlock()
say block.getName()
~ Output: "minecraft:stone"
Checks whether the block has a tag matching the given string (case-insensitive, partial match).
-
Parameters:
-
tagID—String— The tag ID to search for (e.g."minecraft:logs")
-
-
Returns:
Boolean
make block player.getSteppingBlock()
check block.hasBlockTag("minecraft:logs") do
say "Standing on a log!"
end
Returns the block's world position.
-
Returns:
Position
make block player.getSteppingBlock()
make pos block.getPosition()
say pos.toString()
Returns the block light level at this block's position (0–15).
-
Returns:
Integer
make block player.getSteppingBlock()
say block.getBlockLightLevel()
Returns the sky light level at this block's position (0–15).
-
Returns:
Integer
make block player.getSteppingBlock()
say block.getSkyLightLevel()
Returns the note block instrument sound ID associated with this block.
-
Returns:
String— e.g."block.note_block.harp"
make block player.getSteppingBlock()
say block.getInstrument()
Returns whether this block is a solid block.
-
Returns:
Boolean
Returns whether this block is air.
-
Returns:
Boolean
Returns whether this block can catch fire.
-
Returns:
Boolean
Returns whether this block is transparent.
-
Returns:
Boolean
Returns whether this block is opaque.
-
Returns:
Boolean
Returns whether this block is both opaque and a full cube.
-
Returns:
Boolean
make block player.getSteppingBlock()
check block.isSolid() do
say "Solid block"
end
check block.isAir() do
say "Air block"
end
check block.isBurnable() do
say "This block can burn"
end
Returns the full block state as a string, including block properties.
-
Returns:
String— e.g."Block{minecraft:oak_log, axis=y}"
make block player.getSteppingBlock()
say block.toString()
GET IN TOUCH - omar@merakistudios.dev
© 2026 Omar Mohamed. All Rights Reserved.