Wiki
Clone wikiLoot Overhaul / Loot Conditions - Near Block
Loot Conditions - Near Block
Structure:
Property | Type | Description |
---|---|---|
radius | Integer | The radius to search for the block. |
block | String or String List | Possible block names to be near. (Optional) |
meta | Float, Float Range, or Float List | The metadata of the blocks. (Optional) |
state | Object | The state of the blocks, as a json object. (Optional) |
Description:
Will pass if the blocks are found within the given radius
Example Usage: Within 0 blocks of (so inside) water or lava
"conditions": [ { "condition": "lootoverhaul:near_block", "block": [ "minecraft:flowing_water", "minecraft:water", "minecraft:flowing_lava", "minecraft:lava" ], "radius": 0 } ]
"conditions": [ { "condition": "lootoverhaul:near_block", "block": "minecraft:mossy_cobblestone", "radius": 5 } ]
"conditions": [ { "condition": "lootoverhaul:near_block", "block": "minecraft:dispenser", "meta": 1, "radius": 1 } ]
"conditions": [ { "condition": "lootoverhaul:near_block", "block": [ "minecraft:wheat", "minecraft:carrots", "minecraft:potatoes" ], "meta": { "min": 4 }, "radius": 6 } ]
"conditions": [ { "condition": "lootoverhaul:near_block", "block": "minecraft:planks", "meta": [ 0, 5 ], "radius": 6 } ]
"conditions": [ { "condition": "lootoverhaul:near_block", "block": "minecraft:dispenser", "state": { "facing": "up" }, "radius": 1 } ]
"conditions": [ { "condition": "lootoverhaul:near_block", "state": { "color": [ "purple", "pink" ] }, "radius": 1 } ]
Previous - NBT Matches | Back | Next - Not |
Updated