Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:dynamic",
"name": "minecraft:contents",
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "minecraft:player"
},
"entity": "this"
},
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"scratch.foo": {
"min": 1,
"max": 100
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:player_head",
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "minecraft:player"
},
"entity": "this"
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:skeleton_skull",
"conditions": [
{
"condition": "minecraft:entity_properties",
"predicate": {
"type": "#minecraft:skeletons"
},
"entity": "this"
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:coal"
}
]
}
]
}
]
}
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "minecraft:diamond",
"conditions": [
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"scratch.foo": {
"min": 1,
"max": 99
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:emerald",
"conditions": [
{
"condition": "minecraft:entity_scores",
"entity": "this",
"scores": {
"scratch.foo": {
"min": 100,
"max": 100
}
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment