1
0
Files
datapack/data/noemie_mc/loot_table/drop_sand.json
2026-04-06 19:28:59 +02:00

63 lines
1.6 KiB
JSON

{
"type": "minecraft:generic",
"pools": [
{
"rolls": 1.0,
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:killed_by_player"
},
{
"condition": "minecraft:random_chance_with_enchanted_bonus",
"enchanted_chance": {
"type": "minecraft:linear",
"base": 0.75,
"per_level_above_first": 0.125
},
"enchantment": "minecraft:looting",
"unenchanted_chance": 0.625
}
],
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:sand",
"functions": [
{
"function": "minecraft:set_item",
"item": "minecraft:red_sand",
"conditions": [
{
"condition": "minecraft:location_check",
"predicate": {
"biomes": "#minecraft:is_badlands"
}
}
]
},
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 2.0
},
"add": false
},
{
"function": "minecraft:enchanted_count_increase",
"enchantment": "minecraft:looting",
"count": {
"type": "minecraft:uniform",
"min": 0.0,
"max": 1.0
}
}
]
}
]
}
]
}