OnapleRPG / Brawlator

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

[Request] Definable equipment #4

Closed SirFancyBacon closed 4 years ago

SirFancyBacon commented 4 years ago

Add the ability to define equipment within the mob config. Example

    {
        damage=1.0
        hp=5.0
        knockbackResistance=1
        name="Humanity leftover"
        speed=1.0
        type=zombie
        equipment={
          head: {ref : "ItemizerHelm"}
          mainhand: {pool_ref : 1}
          legs: {name: "minecraft:leather_leggings"}

        }
    }
obr-09 commented 4 years ago

Hello, it looks like it has been at least partially implemented. It is in the last release.

Here is an exemple:

monsters=[  
    {  
        damage=1.0  
        hp=50.0  
        knockbackResistance=1
        name="Sandstorm Crusader"
        speed=1.0
        type=skeleton,
        pools=["table1","table3"]
        equipments = {
            offHand : {name : "bow"}
            mainHand : {name : "golden_axe"}
            head : {name : "golden_helmet"}
            chest : {name : "leather_chestplate"}
            legs : {name : "diamond_leggings"}
            foot : {name : "iron_boots"}
        }
    }
]

This is now in the default config, and it spawns a scary skeleton with armor.

If you want to use Itemizer items, you can replace name: golden_axe with ref: barbarian_axe for instance.
Pools have not been implemented for now. I'm closing the issue for the definable equipment, you can open a new one if you want the pool fetching to be possible too