read_power_of_chiseled_bookshelf.json
0 B
Empty File
{
"parent": "minecraft:adventure/root",
"criteria": {
"chiseled_bookshelf": {
"conditions": {
"location": [
{
"block": "minecraft:chiseled_bookshelf",
"condition": "minecraft:block_state_property"
},
{
"condition": "minecraft:any_of",
"terms": [
{
"condition": "minecraft:location_check",
"offsetZ": 1,
"predicate": {
"block": {
"blocks": [
"minecraft:comparator"
],
"state": {
"facing": "north"
}
}
}
},
{
"condition": "minecraft:location_check",
"offsetZ": -1,
"predicate": {
"block": {
"blocks": [
"minecraft:comparator"
],
"state": {
"facing": "south"
}
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": 1,
"predicate": {
"block": {
"blocks": [
"minecraft:comparator"
],
"state": {
"facing": "west"
}
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": -1,
"predicate": {
"block": {
"blocks": [
"minecraft:comparator"
],
"state": {
"facing": "east"
}
}
}
}
]
}
]
},
"trigger": "minecraft:placed_block"
},
"comparator": {
"conditions": {
"location": [
{
"condition": "minecraft:any_of",
"terms": [
{
"condition": "minecraft:all_of",
"terms": [
{
"block": "minecraft:comparator",
"condition": "minecraft:block_state_property",
"properties": {
"facing": "north"
}
},
{
"condition": "minecraft:location_check",
"offsetZ": -1,
"predicate": {
"block": {
"blocks": [
"minecraft:chiseled_bookshelf"
]
}
}
}
]
},
{
"condition": "minecraft:all_of",
"terms": [
{
"block": "minecraft:comparator",
"condition": "minecraft:block_state_property",
"properties": {
"facing": "south"
}
},
{
"condition": "minecraft:location_check",
"offsetZ": 1,
"predicate": {
"block": {
"blocks": [
"minecraft:chiseled_bookshelf"
]
}
}
}
]
},
{
"condition": "minecraft:all_of",
"terms": [
{
"block": "minecraft:comparator",
"condition": "minecraft:block_state_property",
"properties": {
"facing": "west"
}
},
{
"condition": "minecraft:location_check",
"offsetX": -1,
"predicate": {
"block": {
"blocks": [
"minecraft:chiseled_bookshelf"
]
}
}
}
]
},
{
"condition": "minecraft:all_of",
"terms": [
{
"block": "minecraft:comparator",
"condition": "minecraft:block_state_property",
"properties": {
"facing": "east"
}
},
{
"condition": "minecraft:location_check",
"offsetX": 1,
"predicate": {
"block": {
"blocks": [
"minecraft:chiseled_bookshelf"
]
}
}
}
]
}
]
}
]
},
"trigger": "minecraft:placed_block"
}
},
"display": {
"announce_to_chat": true,
"description": {
"translate": "advancements.adventure.read_power_from_chiseled_bookshelf.description"
},
"frame": "task",
"hidden": false,
"icon": {
"item": "minecraft:chiseled_bookshelf"
},
"show_toast": true,
"title": {
"translate": "advancements.adventure.read_power_from_chiseled_bookshelf.title"
}
},
"requirements": [
[
"chiseled_bookshelf",
"comparator"
]
],
"sends_telemetry_event": true
}