Block Attributes

drop

This attribute defines the name, metadata and stack size of the items that the block does drop.

Examples

// Default value (NAME is the block's name)
drop[0] = "NAME:0 1";
// ...
drop[15] = "NAME:15 1";

// Drops one block of oak wooden planks
drop[0] = "minecraft:planks";

// Drops one block of spruce wooden planks
drop[2] = "minecraft:planks:1";

// Drops two blocks of birch wooden planks
drop[4] = "minecraft:planks:2 2";

// Drops one to five blocks of jungle wooden planks
drop[6] = "minecraft:planks:3 1-5";

// Drops three blocks
drop[8] = "MyMod:myBlock 3";

// Drops six blocks with metadata 5
drop[10] = "MyMod:5 6";

// Drops 8 items
drop[15] = "MyMod:myItem 8";

// Drops one to five blocks of birch wooden planks and two jungle wooden planks drop[0] = "minecraft:planks:2 1-5, minecraft:planks:3 2";

// The same as above but using aliases drop[5] = "birchPlanks 1-5, junglePlanks 2";