Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LeChevalierD_Or

Members
  • 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. So can I delete them?
  8. ?? WHAT registers Items
  9. ?? what RegisterItems?
  10. 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
  11. 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() { } }
  12. Thanks I'm reading =) .
  13. Unfortunately I do not have any more code I am in total incomprehension = (
  14. Yes precisely I ask you how to create it and give it features and a skin ?
  15. sorry if I make spelling mistakes but I'm french =)
  16. 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 .
  17. 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")); } }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.