Jump to content

LeChevalierD_Or

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by LeChevalierD_Or

  1. Hello, I would like to know how I must do to have all the half-blocks and all the stairs posable in all directions ... I have no idea ... Regards LeChevalierD_Or
  2. Thanks anyway for your help (and for your patience) =) Okay I'm reopening a new post. Thank you I declare the problem solved ...
  3. Besides, should I open a subject or I can just have a question ... If so here it is: How can I do so that all the half-blocks can be positioned in all directions?
  4. thank you, but the problem did not come from there =)
  5. public static void register(IForgeRegistry<Item> registry) { registry.registerAll(ingotCopper); } public static void registerModels() { ingotCopper.registerItemModel(); } } if that's what you expect from me I've already put it in another class!
  6. Negative I have a very good knowledge of JAVA but not in forge!
  7. Hi, there seems to be a problem but I do not know how to help you. Explanations: When I run the game via eclipse and I go in the CreativeTabs "BuildingsBlocks" I can not find my item CopperIngot = ( Please help me =) Here is a folder where there are all my classes =) Thank you in advance ... error.zip
  8. Hi, I would like to know if until I get well: package com.cubicdeath.blocks; import net.minecraft.item.Item; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.registries.IForgeRegistry; @Mod(modid = Main.modId, name = Main.name, version = Main.version) public class Main { public static final String modId = "cubicdeath_block"; public static final String name = "CubicDeath Block"; public static final String version = "1.0.0"; @Mod.Instance(modId) public static Main instance; @SidedProxy(serverSide = "com.cubicdeath.blocks.CommonProxy", clientSide = "com.cubicdeath.blocks.ClientProxy") public static CommonProxy proxy; @Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println(name + " Et en chargement..."); } @Mod.EventHandler public void init(FMLInitializationEvent event) { } @Mod.EventHandler public void postInit(FMLPostInitializationEvent event) { } @Mod.EventBusSubscriber public static class RegistrationHandler { @SubscribeEvent public static void registerItems(RegistryEvent.Register<Item> event) { Main.register(event.getRegistry()); } @SubscribeEvent public static void registerItems(ModelRegistryEvent event) { Main.registerModels(); } } public static void register(IForgeRegistry<Item> registry) { } public static void registerModels() { } }
  9. Unfortunately I do not have any more code I am in total incomprehension = (
  10. Yes precisely I ask you how to create it and give it features and a skin ?
  11. sorry if I make spelling mistakes but I'm french =)
  12. Hello, Thank you for your answer. here is my code now: package com.cubicdeath.blocks; import net.minecraft.block.Block; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.registry.GameRegistry.ObjectHolder; public class CubicDeath_Blocks{ @SubscribeEvent public void registerBlocks(RegistryEvent.Register<Block> event) { event.getResult().registerAll(Block1); } } Can you now give me the whole code with a block and features so that I can understand better. Thank you in advance .
  13. Hello I have a problem in 1.12 at the line "GameRegistry.register (item); can you help me here is my code: package com.cubicdeath.blocks; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class CubicDeath_Blocks{ public CubicDeath_Blocks() { initItems(); registerItem(logo); registerRender(logo, 0); } public Item logo; public void initItems() { logo = new Item().setRegistryName("logo").setUnlocalizedName("logo"); } @SideOnly(Side.CLIENT) public void registerItem(Item item) { GameRegistry.register(item); } public void registerRender(Item item, int meta) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(new ResourceLocation("test", item.getUnlocalizedName().substring(5)), "inventory")); } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.