I created a data pack for giving a chance when mining stone of getting a random other item, below is all I have so far, was testing to see if this works, can anyone tell me where I went wrong?
I have the spoiler in [world folder]/datapacks/[data pack]/data/minecraft/loot_tables/blocks/stone.json
don't know what the issue with 400 was, (suppose to give 1% chance of the following 4 options) but I guess I'll stick with 2% chances instead, they seem to work fine.;,;.
at this link you can find my data pack, please give me credit if you use this for other things, and don't use this pack to make money unless you give much access to who created it, my current IGN is Redstone_Source http://tiny.cc/DJLDP
I created a data pack for giving a chance when mining stone of getting a random other item, below is all I have so far, was testing to see if this works, can anyone tell me where I went wrong?
I have the spoiler in [world folder]/datapacks/[data pack]/data/minecraft/loot_tables/blocks/stone.json
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"weight": 4,
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "minecraft:stone"
},
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"name": "minecraft:cobblestone"
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_boat",
"weight": 1
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_button",
"weight": 1
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_door",
"weight": 1
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_fence",
"weight": 1
}
]
}
]
}
Updated 6th-october-2019 23:37 pst
I got a bit of a solution, but ran into another problem: this only works when the weights that I'm labeling 400 are lowered (40 was tested and works)
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "minecraft:stone",
"weight": 400
},
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
],
"name": "minecraft:cobblestone",
"weight": 400
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_boat",
"weight": 1
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_button",
"weight": 1
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_door",
"weight": 1
},
{
"type": "minecraft:item",
"name": "minecraft:acacia_fence",
"weight": 1
}
]
}
]
}
Anyone got a fix for me?
don't know what the issue with 400 was, (suppose to give 1% chance of the following 4 options) but I guess I'll stick with 2% chances instead, they seem to work fine.;,;.
at this link you can find my data pack, please give me credit if you use this for other things, and don't use this pack to make money unless you give much access to who created it, my current IGN is Redstone_Source
http://tiny.cc/DJLDP