Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Я подумал, суть темы ясна, исправил, чтобы было понятнееsvk написал(а):Хоти.
Дроп можно сделать несколькими путями:hohserg написал(а):какой именно метод вызвать для дропа.
player.dropPlayerItemWithRandomChoice(new ItemStack(Items.name_tag, 1, 0), true);
player.entityDropItem(new ItemStack(Items.name_tag, 1, 0), 0.0F);
public static void dropItem(World world, int x, int y, int z, ItemStack is) {
dropItem(world, (double)x + 0.5D, (double)y + 0.5D, (double)z + 0.5D, is);
}
public static void dropItem(World world, double x, double y, double z, ItemStack is) {
if (world != null && is != null) {
if (!world.isRemote) {
EntityItem entityitem = new EntityItem(world, x, y, z, is);
entityitem.delayBeforeCanPickup = 10;
world.spawnEntityInWorld(entityitem);
}
}
}
Вроде как можно использовать NBT тег(-и).hohserg написал(а):как добавить свою скрытую прочность