1
0
Fork 0
mirror of https://github.com/TheClashFruit/CreatePissAndShit.git synced 2024-09-19 09:26:46 +00:00

fix: fix loot tables

This commit is contained in:
TheClashFruit 2024-07-28 18:22:10 +02:00
parent 55931d1db4
commit 85dc31f9e0
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
2 changed files with 94 additions and 23 deletions

View file

@ -1,36 +1,44 @@
{
"type": "minecraft:block",
"random_sequence": "pissnshit:blocks/shit_block",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "pissnshit:shit_block",
"conditions": [
"type": "minecraft:alternatives",
"children": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": 1
"type": "minecraft:item",
"name": "pissnshit:shit_block",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": 1
}
]
}
]
}
}
]
},
{
"type": "minecraft:item",
"name": "pissnshit:shit",
"functions": [
{
"function": "minecraft:set_count",
"count": 4,
"add": false
}
]
},
{
"function": "minecraft:explosion_decay"
"type": "minecraft:item",
"name": "pissnshit:shit",
"functions": [
{
"function": "minecraft:set_count",
"count": 4,
"add": false
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}

View file

@ -0,0 +1,63 @@
{
"type": "minecraft:block",
"random_sequence": "pissnshit:blocks/shit_candle",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"functions": [
{
"add": false,
"conditions": [
{
"block": "pissnshit:shit_candle",
"condition": "minecraft:block_state_property",
"properties": {
"candles": "2"
}
}
],
"count": 2,
"function": "minecraft:set_count"
},
{
"add": false,
"conditions": [
{
"block": "pissnshit:shit_candle",
"condition": "minecraft:block_state_property",
"properties": {
"candles": "3"
}
}
],
"count": 3,
"function": "minecraft:set_count"
},
{
"add": false,
"conditions": [
{
"block": "pissnshit:shit_candle",
"condition": "minecraft:block_state_property",
"properties": {
"candles": "4"
}
}
],
"count": 4,
"function": "minecraft:set_count"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "pissnshit:shit_candle"
}
]
}
]
}