Mining dirt, grass, and stone with gem finding now give you a chanc of dropping gemstones.

This commit is contained in:
Sollace 2023-03-05 16:28:47 +00:00
parent 539f094582
commit 0bcf2e7ada
5 changed files with 179 additions and 2 deletions

View file

@ -4,7 +4,7 @@
{ "item": "minecraft:diamond" }
],
"result": {
"item": "unicopia:crystal_shard",
"count": 3
"item": "unicopia:crystal_shard",
"count": 3
}
}

View file

@ -23,6 +23,43 @@
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "unicopia:gem_finder",
"levels": {
"min": 1
}
}
]
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "unicopia:gem_finder",
"chances": [ 0.060555554 ]
}
],
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "unicopia:gemstone"
},
{
"type": "minecraft:item",
"conditions": [

View file

@ -23,6 +23,43 @@
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "unicopia:gem_finder",
"levels": {
"min": 1
}
}
]
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "unicopia:gem_finder",
"chances": [ 0.055555554 ]
}
],
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "unicopia:gemstone"
},
{
"type": "minecraft:item",
"conditions": [

View file

@ -23,6 +23,43 @@
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "unicopia:gem_finder",
"levels": {
"min": 1
}
}
]
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "unicopia:gem_finder",
"chances": [ 0.055555554 ]
}
],
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "unicopia:gemstone"
},
{
"type": "minecraft:item",
"conditions": [

View file

@ -0,0 +1,66 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"conditions": [
{
"condition": "minecraft:inverted",
"term": {
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
}
],
"entries": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "unicopia:gem_finder",
"levels": {
"min": 1
}
}
]
}
},
{
"condition": "minecraft:table_bonus",
"enchantment": "unicopia:gem_finder",
"chances": [ 0.1 ]
}
],
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "unicopia:gemstone"
}
]
}
]
}