fertfoot.blogg.se

Minecraft zombie drop chances
Minecraft zombie drop chances





minecraft zombie drop chances

disable-silk-touch - when set to true, this will prevent the subtable from dropping any item if the block was mined with a silk touch pickaxe.unidentified-chance - the chance for your item to be unidentified when it drops.min & max - The amount of drops is chosen randomly between these two values.drop-chance - The chance for your item to drop.Zombies will have a 50 chance of dropping 1 block of gravel. You can configurate three values for each subtable item: A puny datapack I made for someones Skyblock game. Follow the same format as in the monsters section, but replace the mob name by the block type name. Zombies will have a 50 chance of dropping 1 block of gravel. The blocks config section corresponds to the items that drop whenever a block is broken/mined by a player. ITEM_ID: (drop-chance),(min)-(max),(unidentified-chance).The monsters section corresponds to the items that drop whenever an entity dies. The chance for a subtable to be chosen can thus be calculated using this formula: If, inside a drop table, the first subtable has a coefficient of 1 and the second has a coefficient of 2, the first subtable has a 1 in 3 chance of being selected. Calculating the chance for a subtable to be selected is pretty easy. The higher the coefficient is, the higher the chance is for the subtable to be selected. Subtables can have different subtable coefficients. This way, these two items can't spawn at the same time. In the first subtable, you would have your iron sword, and in the second subtable you would have the iron chestplate. Since having a chance to drop both items at the same time would be to overpowered, you can split the zombie drop table into two subtables.

minecraft zombie drop chances

Let's say for instance you want a zombie to drop a custom iron sword or a custom leather chestplate.

minecraft zombie drop chances

Having multiple subtables allows you to actually prevent two items from spawning at the same time. When a drop table is read, a random subtable among all the subtables is chosen and the items from that subtable are then dropped. # Read when a block is mined/broken by a player.ĭrop tables are split into subtables. # - 10% chance of being unidentified (for each item) # subtable in a drop table has a different name. # The subtable names do not matter, just make sure every # When a drop table is read, a random subtable is chosen # The higher the coefficient is, the higher the chance to be the selected subtable. # chance out of 4 (sum of all subtable coefficients) to be selected. # another subtable has coef=3, then the first subtable has 1 (his coefficient) # want for each monster/block/mythic mob. # You can create as many subtables as you







Minecraft zombie drop chances