Gen de minerais
-
Bonjours, j’ai récemment remarquer que les minerais de mon mod ne spawnaient plus
Pourtant j’ai juste ajouter un outils et un block au mod
Voici les fichiers :
http://www.mediafire.com/download/isracfxlb68hkjf/LockyCraft-2.0.zip
Voila voila (j’ai utiliser jdgui parce que j’ai plus les sources de base donc désoler :c)
-
Salut,
Dans ta classe principale tu as :
/* / @Mod.EventHandler
/ / public static void PreLoad(FMLPreInitializationEvent e)
/ / {
/ 118 /
/ 119 / proxy.registerRender();
/ */ }ça devrait être OreGen.initializeWorldGen(); et cette fonction devrait être dans init et non dans preInit.
-
/* */ package fr.browneez.locky; /* */ /* */ import cpw.mods.fml.common.Mod; /* */ import cpw.mods.fml.common.Mod.EventHandler; /* */ import cpw.mods.fml.common.Mod.Instance; /* */ import cpw.mods.fml.common.SidedProxy; /* */ import cpw.mods.fml.common.event.FMLInitializationEvent; /* */ import cpw.mods.fml.common.event.FMLPreInitializationEvent; /* */ import cpw.mods.fml.common.registry.GameRegistry; /* */ import cpw.mods.fml.relauncher.Side; /* */ import cpw.mods.fml.relauncher.SideOnly; /* */ import fr.browneez.blocks.LockyumBlock; /* */ import fr.browneez.blocks.Lockyumore; /* */ import fr.browneez.blocks.TitaniumBlock; /* */ import fr.browneez.blocks.Titaniumore; /* */ import fr.browneez.gen.OreGen; /* */ import fr.browneez.items.Lockyumingot; /* */ import fr.browneez.items.Obsidianstick; /* */ import fr.browneez.items.Titaniumingot; /* */ import fr.browneez.proxy.ProxyCommon; /* */ import fr.browneez.register.Reg; /* */ import net.minecraft.block.Block; /* */ import net.minecraft.block.material.Material; /* */ import net.minecraft.creativetab.CreativeTabs; /* */ import net.minecraft.init.Items; /* */ import net.minecraft.item.Item; /* */ import net.minecraft.item.Item.ToolMaterial; /* */ import net.minecraft.item.ItemArmor.ArmorMaterial; /* */ import net.minecraftforge.common.util.EnumHelper; @Mod(modid="lockycraft", name="LockyCraft", version="Beta 5.0") public class Main { @SidedProxy(clientSide="fr.browneez.proxy.ProxyClient", serverSide="fr.browneez.proxy.ProxyCommon") /* */ public static ProxyCommon proxy; /* */ @Mod.Instance("lockycraft") /* */ public static Main instance; /* 59 */ public static CreativeTabs tablockycraft = new CreativeTabs("tablockycraft") /* */ { /* */ @SideOnly(Side.CLIENT) /* */ public Item getTabIconItem() { /* 63 */ return Items.arrow; /* */ } }; /* */ public static Item Lockyumingot; /* */ public static Item Titaniumingot; /* */ public static Item Obsidianstick; /* */ public static Block Lockyumore; /* */ public static Block Titaniumore; /* */ public static Block LockyumBlock; /* */ public static Block TitaniumBlock; /* */ @Mod.EventHandler /* */ public static void PreLoad(FMLPreInitializationEvent e) /* */ { /* 119 */ proxy.registerRender(); /* */ } /* */ @Mod.EventHandler /* */ public static void Load(FMLInitializationEvent e) /* */ { OreGen.initializeWorldGen(); /* 149 */ Lockyumingot = new Lockyumingot(6000).setTextureName("lockycraft:LockyumIngot"); /* 150 */ Titaniumingot = new Titaniumingot(6100).setTextureName("lockycraft:TitaniumIngot"); /* 152 */ Obsidianstick = new Obsidianstick(6300).setTextureName("lockycraft:ObsidianStick"); /* 153 */ GameRegistry.registerItem(Lockyumingot, "Lockyumingot"); /* 154 */ GameRegistry.registerItem(Titaniumingot, "Titaniumingot"); /* 156 */ GameRegistry.registerItem(Obsidianstick, "Obsidianstick"); /* 159 */ Lockyumore = new Lockyumore(200, Material.rock).setBlockName("Lockyumore").setBlockTextureName("lockycraft:Lockyum"); /* 160 */ Titaniumore = new Titaniumore(210, Material.rock).setBlockName("Titaniumore").setBlockTextureName("lockycraft:Titanium"); /* 162 */ LockyumBlock = new LockyumBlock(Material.rock).setBlockName("LockyumBlock").setBlockTextureName("lockycraft:LockyumBlock"); /* 163 */ TitaniumBlock = new TitaniumBlock(Material.rock).setBlockName("TitaniumBlock").setBlockTextureName("lockycraft:TitaniumBlock"); /* 168 */ GameRegistry.registerBlock(LockyumBlock, "LockyumBlock"); /* 169 */ GameRegistry.registerBlock(TitaniumBlock, "TitaniumBlock"); /* 170 */ GameRegistry.registerBlock(Lockyumore, "lockyumore"); /* 171 */ GameRegistry.registerBlock(Titaniumore, "titaniumore"); /* 202 */ Reg.craftItems(Obsidianstick, LockyumBlock, TitaniumBlock, Titaniumingot, Lockyumingot); /* 203 */ Reg.smelting(Lockyumore, Titaniumore); /* */ } }
Comme ça ? parce que j’ai toujours pas de minerais
-
Il faut la mettre après les blocs.