У меня есть блок. Этот блок имеет пользовательский дроп (1 предмет). Мой вопрос - как я могу завершить методы amountDropped () и getItemDropped ()if I need 2 or more items to drop out of the block ?
The Meaning of Life, the Universe, and Everything.
Join Date:
11/12/2016
Posts:
100
Member Details
Stick this in your block class and tweak to your liking
@Override
public int quantityDropped(IBlockState state, int fortune, Random random) {
IBlockState state = ModBlocks.YOURBLOCK.getDefaultState();
if (state == blockthatdrops2things) {
return (int) (5 +(1.5 * fortune));
}else{
return 1;
}
}
У меня есть блок. Этот блок имеет пользовательский дроп (1 предмет). Мой вопрос - как я могу завершить методы amountDropped () и getItemDropped ()if I need 2 or more items to drop out of the block ?
Stick this in your block class and tweak to your liking