-
Content Count
16 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout DouYanC
-
Rank
Tree Puncher
Converted
-
Gender
Male
-
Location
China
-
Personal Text
Like to play Minecraft
Recent Profile Visitors
719 profile views
-
DouYanC started following [1.7.10]What is setStepSound?, [1.12.2]How to make the same purple light as the ender dragon died?, [1.12.2]How write block Drop ? and and 2 others
-
How write block Drop ?
-
How write block Drop ? I need you to help me, thank you!
-
public class earea { SiliconOre SiliconOre = new SiliconOre(); public static Item item; @EventHandler public void preInit(FMLPreInitializationEvent event) { ForgeRegistries.BLOCKS.register(SiliconOre); item = new ItemBlock(SiliconOre).setRegistryName(SiliconOre.getRegistryName()); ForgeRegistries.ITEMS.register(item); } } public class SiliconOre extends Block{ public SiliconOre() { super(Material.GROUND); setSoundType(SoundType.WOOD); setRegistryName("cccc"); setHarvestLevel("pickaxe", 4); setCreativeTab(CreativeTabs.BUILDING_BLOCKS); setHardness(2.0F); setResistance(10.0F); setLightLevel(0.0F); setUnlocalizedName("cccc"); setLightOpacity(0); } } Successful, thank you!
-
public void PreInit(FMLPreInitializationEvent event) { ForgeRegistries.BLOCKS.register(new SiliconOre()); } public class SiliconOre extends Block{ public SiliconOre (){ super(Material.ROCK); setHardness(5.0F); setResistance(15.0F); setHarvestLevel("pickaxe", 2); setLightLevel(1.0F); setRegistryName("siliconore"); } } register block Okay,after no add block
-
How do you get it ?
-
Here https://github.com/mpecc/Earea-mod
-
register block Okay. Strange'no add block Here https://github.com/mpecc/Earea-mod Need You help me
-
You try it out setBlockBounds(0.0F, 0.0F, 0.0F, 5.0F, 5.0F, 5.0F);
-
public Item getItemDropped(int par1, Random par2Random, int par3) { return Item.getItemFromBlock(Blocks.diamond_block); return Item.getItemFromBlock(Blocks.bed); return Item.getItemFromBlock(Blocks.cake); } no can add more is it?
-
Thank you!
-
What is setStepSound(Block.soundTypeStone); ?