OnapleRPG / Brawlator

Sponge Minecraft plugin to generate custom spawners
Apache License 2.0
0 stars 0 forks source link

[Request] Itemizer integration and item drops #1

Closed SirFancyBacon closed 4 years ago

SirFancyBacon commented 4 years ago

Add itemizer item and pool support. the example config below will always drop the item "Bronze Dagger" and the minecraft item "bone" as well as roll both item pools and drop both items (if any) that are returned.

monsters=[
    {
        damage=1.0
        hp=50.0
        knockbackResistance=1
        name="Tank archer"
        speed=1.0
        type=skeleton
        drops: [
            item: {name: "minecraft:bone"},
            item: {ref: "Bronze Dagger"}, //will always drop itemizer item "Bronze Dagger"
            pool: {ref: 1}, //will always look into Itemizer Pool and return value
            pool: {ref: 21} //will always look into Itemizer Pool and return value
        ]
    }
]
obr-09 commented 4 years ago

Good news, we have an implemented drop pool system! (still in 1.2.0)
It's among the default generated config in the "loot.conf" config file. Here is how it works: