Skip to content

Instantly share code, notes, and snippets.

@Arcensoth
Created December 20, 2019 17:19
Show Gist options
  • Save Arcensoth/28b351f73e3c0fb8c95d1124bec4e531 to your computer and use it in GitHub Desktop.
Save Arcensoth/28b351f73e3c0fb8c95d1124bec4e531 to your computer and use it in GitHub Desktop.
{
"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