loot_tables: buff grist drops on creepers, add grist to others

This commit is contained in:
Victoria Fierce 2022-09-18 11:37:04 +02:00
parent b5a3844381
commit 240501a663
5 changed files with 321 additions and 4 deletions

View File

@ -35,16 +35,16 @@
{ {
"function": "minecraft:set_count", "function": "minecraft:set_count",
"count": { "count": {
"min": 5, "min": 50,
"max": 15 "max": 150
} }
}, },
{ {
"function": "minecraft:looting_enchant", "function": "minecraft:looting_enchant",
"count": { "count": {
"type": "minecraft:uniform", "type": "minecraft:uniform",
"min": 5, "min": 50,
"max": 15 "max": 150
} }
} }
], ],

View File

@ -0,0 +1,52 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:ender_pearl",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
},
{
"type": "minecraft:loot_table",
"name": "malloc:items/grist_coin",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 25,
"max": 50
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
}
]
}

View File

@ -0,0 +1,83 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:arrow",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 2
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:bone",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 2
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
},
{
"type": "minecraft:loot_table",
"name": "malloc:items/grist_coin",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 75,
"max": 150
}
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 75,
"max": 150
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
}
]
}

View File

@ -0,0 +1,86 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:string",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 2
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
},
{
"type": "minecraft:loot_table",
"name": "malloc:items/grist_coin",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 35,
"max": 70
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
},
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:spider_eye",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": -1,
"max": 1
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
}

View File

@ -0,0 +1,96 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:rotten_flesh",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 2
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
},
{
"type": "minecraft:loot_table",
"name": "malloc:items/grist_coin",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 25,
"max": 50
}
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
}
]
}
]
},
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot"
},
{
"type": "minecraft:item",
"name": "minecraft:carrot"
},
{
"type": "minecraft:item",
"name": "minecraft:potato",
"functions": [
{
"function": "minecraft:furnace_smelt",
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"flags": {
"is_on_fire": true
}
}
}
]
}
]
}
],
"conditions": [
{
"condition": "minecraft:killed_by_player"
},
{
"condition": "minecraft:random_chance_with_looting",
"chance": 0.025,
"looting_multiplier": 0.01
}
]
}
]
}