Community listing page, reviews may not be monitored by the author.
Get Block
No reviews yet
A function to get the block's id, state, and data.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Get Block
This library allows to get block placed at current execution context.

Usage
All functions return result to storage getblock:.
getblock:block
Input: None
Output:
id: ID of the blockshort_id: Un-namespaced ID of the blockstate: State of the blockdata: Data obtained by commanddata get block ~ ~ ~x,y,z: Coordinates of the block
function getblock:block
data get storage getblock: output
{
"id": "minecraft:dispenser",
"short_id": "dispenser",
"state": {
"triggered": "false",
"facing": "north"
},
"data": {
"Items": [],
"x": 0,
"y": 56,
"z": 0,
"id": "minecraft:dispenser"
},
"x": 0,
"y": 56,
"z": 0
}
getblock:id
Get only id
Input: None
Output:
id: ID of the block
{
"id": "minecraft:dispenser"
}
getblock:state
Get only state
Input: None
Output:
state: State of the block
{
"state": {
"triggered": "false",
"facing": "north"
}
}
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources