private void registerItemRecipes() { this.registerLeaderRecipes(new ItemStack(this.claimOrder), Items.PAPER, Items.ARROW); this.registerLeaderRecipes(new ItemStack(this.paymentOrder), Items.PAPER, Items.BOWL); this.registerLeaderRecipes(new ItemStack(this.renameOrder), Items.PAPER, Items.BLAZE_POWDER); this.registerLeaderRecipes(new ItemStack(this.inheritanceDeed), Items.PAPER, Items.GOLD_INGOT); this.registerLeaderRecipes(new ItemStack(this.factionLedger), Items.PAPER, Items.BOOK); this.registerLeaderRecipes(new ItemStack(this.returnOrder), Items.PAPER, Items.MAP); GameRegistry.addShapelessRecipe(new ItemStack(this.playerIDCard), new ItemStack(Items.PAPER), new ItemStack(Items.PAPER), new ItemStack(Items.WOODEN_SWORD)); GameRegistry.addRecipe(new ItemStack(this.territoryMap), " o ", "oco", " o ", 'o', new ItemStack(this.claimOrder), 'c', Items.COMPASS ); }
@SubscribeEvent public static void registerBlocks (RegistryEvent.Register<Block> event) { IForgeRegistry<Block> registry = event.getRegistry(); registry.registerAll( new BlockStoneMaterial("stone_block", makeName("stone_block")), new BlockMetalMaterial("metal_block", makeName("metal_block")), new BlockBloomeryFurnace("bloomery_furnace", makeName("bloomery_furnace")), new BlockFence("metal_fence", makeName("metal_fence")), new BlockLattice("metal_lattice", makeName("metal_lattice")), new BlockCandelabra("candelabra", makeName("candelabra")), new BlockCandelilla("candelilla", makeName("candelilla")) ); GameRegistry.registerTileEntity(TileBloomeryFurnace.class, makeName("bloomery_furnace")); GameRegistry.registerTileEntity(TileCandelabra.class, makeName("candelabra")); GameRegistry.registerTileEntity(TileLattice.class, makeName("metal_lattice")); }
public void init(FMLInitializationEvent e){ //tile entity GameRegistry.registerTileEntity(TileActivePile.class, Constants.MODID+"active_pile"); GameRegistry.registerTileEntity(TileCreosoteCollector.class, Constants.MODID+"creosote_collector"); GameRegistry.registerTileEntity(TilePotteryKiln.class, Constants.MODID+"pottery_kiln"); GameRegistry.registerFuelHandler(new FuelRegistry()); MinecraftForge.EVENT_BUS.register(new PileIgnitr()); MinecraftForge.EVENT_BUS.register(new PotionRegistry()); PotionRegistry.initPotions(); ItemsRegistry.initOreDict(); if(!Config.DisableDefaultPottery) PotteryKilnRecipe.initRecipes(); PotteryKilnRecipe.initCustomRecipes(Config.PotteryRecipes); if(Config.RegisterRecipes) Crafting.registerRecipes(); }
public static void register() { //Misc + crafting //Jello GameRegistry.register(itemliquidmeat); GameRegistry.register(itemfilterpart); GameRegistry.register(itemfilter); GameRegistry.register(itemgelatinewet); GameRegistry.register(itemgelatine); GameRegistry.register(itemjellomix); GameRegistry.register(itemjellohot); //Cat Hair GameRegistry.register(itemcathair); //Foods //Ramen GameRegistry.register(foodpeppers); GameRegistry.register(foodramencold); GameRegistry.register(foodramencooked); //Bologna GameRegistry.register(foodbologna); //Jello GameRegistry.register(foodjello); }
public static void register() { //Misc + decor registerBlock(blockflint); //Cat Hair registerBlock(blockcathair); //Bologna registerBlock(blockbologna); //Ramen registerBlock(blockramen); //Jello registerBlock(blockjello); //Crops GameRegistry.register(croppeppers); }
@Subscribe public void preInit(FMLPreInitializationEvent evt) { CapabilityItemHandler.register(); CapabilityFluidHandler.register(); CapabilityAnimation.register(); CapabilityEnergy.register(); MinecraftForge.EVENT_BUS.register(MinecraftForge.INTERNAL_HANDLER); ForgeChunkManager.captureConfig(evt.getModConfigurationDirectory()); MinecraftForge.EVENT_BUS.register(this); if (!ForgeModContainer.disableVersionCheck) { ForgeVersion.startVersionCheck(); } // Add and register the forge universal bucket, if it's enabled if(FluidRegistry.isUniversalBucketEnabled()) { universalBucket = new UniversalBucket(); universalBucket.setUnlocalizedName("forge.bucketFilled"); GameRegistry.registerItem(universalBucket, "bucketFilled"); MinecraftForge.EVENT_BUS.register(universalBucket); } }
@CustomRegistry public static void init() { Biome.BiomeProperties properties = new Biome.BiomeProperties("Rubber Plantation"); properties.setTemperature(0.95F); properties.setRainfall(0.95F); properties.setBaseHeight(0.45F); properties.setHeightVariation(0.4F); rubberPlantationBiome = new RubberPlantationBiome(properties); rubberPlantationBiome.setRegistryName(new ResourceLocation(TRConstants.MOD_ID, "rubberPlantation")); GameRegistry.register(rubberPlantationBiome); BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(rubberPlantationBiome, 20)); BiomeManager.addSpawnBiome(rubberPlantationBiome); BiomeProvider.allowedBiomes.add(rubberPlantationBiome); }
@Mod.EventHandler public void preInit(FMLPreInitializationEvent event){ config = new Configuration(event.getSuggestedConfigurationFile()); config.load(); COMPASSX_PROPERTY = config.get("hidden", ConfigValues.COMPASSX_NAME, ConfigValues.COMPASSX_DEFAULT, I18n.format(ConfigValues.COMPASSX_NAME+".tooltip")); COMPASSY_PROPERTY = config.get("hidden", ConfigValues.COMPASSY_NAME, ConfigValues.COMPASSY_DEFAULT, I18n.format(ConfigValues.COMPASSY_NAME+".tooltip")); TARGETX_PROPERTY = config.get(Configuration.CATEGORY_GENERAL, ConfigValues.TARGETX_NAME, ConfigValues.TARGETX_DEFAULT, I18n.format(ConfigValues.TARGETX_NAME+".tooltip")); TARGETZ_PROPERTY = config.get(Configuration.CATEGORY_GENERAL, ConfigValues.TARGETZ_NAME, ConfigValues.TARGETZ_DEFAULT, I18n.format(ConfigValues.TARGETZ_NAME+".tooltip")); XALIGNMENT_PROPERTY = config.get("hidden", ConfigValues.XALIGNMENT_NAME, ConfigValues.XALIGNMENT_DEFAULT.name(), I18n.format(ConfigValues.XALIGNMENT_NAME+".tooltip")); YALIGNMENT_PROPERTY = config.get("hidden", ConfigValues.YALIGNMENT_NAME, ConfigValues.YALIGNMENT_DEFAULT.name(), I18n.format(ConfigValues.YALIGNMENT_NAME+".tooltip")); syncConfig(); GameRegistry.register(uhccompass); ModelLoader.setCustomModelResourceLocation(uhccompass, 0, new ModelResourceLocation(MODID+":uhccompass", "inventory")); MinecraftForge.EVENT_BUS.register(new ClientEvents()); MinecraftForge.EVENT_BUS.register(new RenderEvents()); MinecraftForge.EVENT_BUS.register(keyHandler = new KeyHandler()); }
@SubscribeEvent public static void registerBlocks(RegistryEvent.Register<Block> event) { event.getRegistry().register(new BlockLodestoneOre()); event.getRegistry().register(new BlockBase("celestial_stone").setHardness(5F).setResistance(1000.0F)); event.getRegistry().register(new BlockRift("rift")); event.getRegistry().register(new BlockPipe("pipe")); event.getRegistry().register(new BlockStabilityProjector()); event.getRegistry().register(new BlockCreativeTank()); event.getRegistry().register(new BlockTestTank()); GameRegistry.registerTileEntity(TileEntityRift.class, Etheric.MODID + ":rift"); GameRegistry.registerTileEntity(TileEntityPipe.class, Etheric.MODID + ":pipe"); GameRegistry.registerTileEntity(TileEntityStabilityProjector.class, Etheric.MODID + ":stability_projector"); GameRegistry.registerTileEntity(TileEntityCreativeTank.class, Etheric.MODID + ":creative_tank"); GameRegistry.registerTileEntity(TileEntityTestTank.class, Etheric.MODID + ":test_tank"); }
public static void register(){ GameRegistry.register(test_block); GameRegistry.register(ibTest_Block, test_block.getRegistryName()); GameRegistry.register(shard_ore_orange); GameRegistry.register(ibshard_ore_orange, shard_ore_orange.getRegistryName()); GameRegistry.register(shard_ore_green); GameRegistry.register(ibshard_ore_green, shard_ore_green.getRegistryName()); GameRegistry.register(shard_ore_white); GameRegistry.register(ibshard_ore_white, shard_ore_white.getRegistryName()); GameRegistry.register(shard_ore_purple); GameRegistry.register(ibshard_ore_purple, shard_ore_purple.getRegistryName()); GameRegistry.register(trinket_maker); GameRegistry.register(ibtrinket_maker, trinket_maker.getRegistryName()); }
@EventHandler public void init(FMLInitializationEvent event) { proxy.init(event); NetworkRegistry.INSTANCE.registerGuiHandler(Currency.INSTANCE, new GuiHandler()); AccountCapability.register(); CartCapability.register(); PacketDispatcher.registerPackets(); FMLInterModComms.sendMessage("waila", "register", "com.zundrel.currency.common.compat.waila.CurrencyWailaProvider.callbackRegister"); GameRegistry.registerTileEntity(TileEntityShopController.class, ModInfo.MODID + ":" + "shop_controller"); GameRegistry.registerTileEntity(TileEntityDisplay.class, ModInfo.MODID + ":" + "display"); GameRegistry.registerTileEntity(TileEntityStockCrate.class, ModInfo.MODID + ":" + "stock_crate"); }
@EventHandler public void preInit(FMLPreInitializationEvent event) { ModMetadata meta = event.getModMetadata(); meta.authorList = Arrays.asList(new String[]{"bl4ckscor3"}); meta.autogenerated = false; meta.description = "Adds a fast way to store XP and share it with your friends!"; meta.modId = MOD_ID; meta.name = NAME; meta.version = VERSION; MinecraftForge.EVENT_BUS.register(new bl4ckscor3.mod.globalxp.handlers.EventHandler()); config = new Config(event.getSuggestedConfigurationFile()); network = NetworkRegistry.INSTANCE.newSimpleChannel(MOD_ID); network.registerMessage(new SPacketUpdateXPBlock.Handler(), SPacketUpdateXPBlock.class, 0, Side.CLIENT); network.registerMessage(new CPacketRequestXPBlockUpdate.Handler(), CPacketRequestXPBlockUpdate.class, 1, Side.SERVER); xp_block = new XPBlock(Material.IRON); GameData.register_impl(xp_block); GameData.register_impl(new ItemBlock(xp_block).setRegistryName(xp_block.getRegistryName().toString())); GameRegistry.registerTileEntity(TileEntityXPBlock.class, xp_block.getRegistryName().toString()); serverProxy.loadModels(); serverProxy.registerRenderers(); }
@Override public void registerRecipes() { GameRegistry.addShapelessRecipe(new ItemStack(this), Items.PAPER, Items.BLAZE_POWDER ); }
public static void register(){ GameRegistry.register(testItem); GameRegistry.register(debugItem); GameRegistry.register(orangeShard); GameRegistry.register(greenShard); GameRegistry.register(whiteShard); GameRegistry.register(purpleShard); GameRegistry.register(testRing); GameRegistry.register(redRing); }
@Override public void OnPreInit(FMLPreInitializationEvent e) { //TODO: move these int id = 1; EntityRegistry.registerModEntity(new ResourceLocation(ModConstants.MODID + ":nodeitem"), EntityNodeItem.class, "nodeItem", id++, Anima.Instance, 64, 1, true); EntityRegistry.registerModEntity(new ResourceLocation(ModConstants.MODID + ":blockSuck"), EntityBlockSuck.class, "blockSuck", id++, Anima.Instance, 64, 3, true); GameRegistry.registerWorldGenerator(new AnimaWorldGenerator(), 0); CapabilityAnima.register(); }
public BlockBase(Material materialIn, String name, float hardness, float resistance) { super(materialIn); setUnlocalizedName(name); setRegistryName(name); setResistance(resistance); setHardness(hardness); GameRegistry.register(this); GameRegistry.register(new ItemBlock(this), getRegistryName()); }
public static void init() { GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.GENERATOR_TRASH), "ifi", "fsf", "ifi", 'f', new ItemStack(Blocks.FURNACE), 's', new ItemStack(MBlocks.STONE_REINFORCED), 'i', "ingotIron")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.GENERATOR_COAL), "ifi", "fcf", "ifi", 'f', new ItemStack(Blocks.FURNACE), 'c', new ItemStack(Items.COAL), 'i', "ingotIron")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.CRANK), " ww", "twt", "sss", 'w', "plankWood", 's', new ItemStack(MBlocks.STONE_REINFORCED), 't', new ItemStack(Blocks.STONE_SLAB))); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.STONE_REINFORCED), "sis", "isi", "sis", 'i', "ingotIron", 's', "stone")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.ACCUMULATOR_STONE_REINFORCED), "sis", "iri", "sis", 'i', "ingotIron", 's', new ItemStack(MBlocks.STONE_REINFORCED), 'r', "blockRedstone")); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.ACCUMULATOR_IRON), "sis", "iri", "sis", 'i', "blockIron", 'r', new ItemStack(MBlocks.ACCUMULATOR_STONE_REINFORCED), 's', new ItemStack(MBlocks.STONE_REINFORCED))); GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MItems.WRENCH), "s s", "sss", " s ", 's', new ItemStack(MBlocks.STONE_REINFORCED))); registerFurnaceRecipes(); }
@Mod.EventHandler public void preInit(FMLPreInitializationEvent event) { TabStatclock = new CreativeTabSC(CreativeTabs.getNextID(), "tab_statclock"); ModItems.preInit(); ModBlocks.preInit(); GameRegistry.registerWorldGenerator(new Generation(), 2); proxy.preInit(event); }
public static void updateMobSpawning() { ArrayList<Biome> biomesList = new ArrayList<Biome>(); for (Biome biome : GameRegistry.findRegistry(Biome.class)){ if(biome!=Biomes.HELL && biome!=Biomes.SKY) biomesList.add(biome); } if (!TF2ConfigVars.disableSpawn) { Biome[] biomes = biomesList.toArray(new Biome[biomesList.size()]); for(Entry<Class<? extends EntityLiving>, Integer> entry:TF2ConfigVars.spawnRate.entrySet()) { EntityRegistry.addSpawn(entry.getKey(), entry.getValue().intValue(), 1, 3, EnumCreatureType.MONSTER, biomes); } } }
/** * Remap the missing item to the specified Item. * * Use this if you have renamed an Item. * Existing references using the old name will point to the new one. * * @param target Item to remap to. */ public void remap(Item target) { if (type != GameRegistry.Type.ITEM) throw new IllegalArgumentException("Can't remap a block to an item."); if (target == null) throw new NullPointerException("remap target is null"); if (GameData.getItemRegistry().getId(target) < 0) throw new IllegalArgumentException(String.format("The specified item %s hasn't been registered at startup.", target)); action = Action.REMAP; this.target = target; }
@Mod.EventHandler public void preInit(FMLPreInitializationEvent e) { // register block GameRegistry.register(blockXPBox = new BlockXPBox()); ItemBlock item = new ItemBlock(blockXPBox); GameRegistry.register(item, blockXPBox.getRegistryName()); proxy.registerItemRenderer(item); // init network PacketHandler.init(); }
private static <T extends Block> T register(T block, ItemBlock itemBlock) { GameRegistry.register(block); GameRegistry.register(itemBlock); if (block instanceof BlockBase) { ((BlockBase)block).registerItemModel(itemBlock); } if(block instanceof BlockTileEntity) { GameRegistry.registerTileEntity(((BlockTileEntity<?>)block).getTileEntityClass(), block.getRegistryName().toString()); } return block; }
private static void registerBlock(Block block) { GameRegistry.register(block); ItemBlock item = new ItemBlock(block); item.setRegistryName(block.getRegistryName()); GameRegistry.register(item); }
private static <T extends Item> T register(T item) { GameRegistry.register(item); if(item instanceof ItemBase) ((ItemBase)item).registerItemModel(); return item; }
public static void register() { //Bologna GameRegistry.register(toolbolognapickaxe); GameRegistry.register(toolbolognaaxe); GameRegistry.register(toolbolognashovel); GameRegistry.register(toolbolognasword); GameRegistry.register(toolbolognahoe); GameRegistry.register(toolbolognashears); //Ramen GameRegistry.register(toolramenpickaxe); GameRegistry.register(toolramenaxe); GameRegistry.register(toolramenshovel); GameRegistry.register(toolramensword); GameRegistry.register(toolramenhoe); GameRegistry.register(toolramenshears); //Jello GameRegistry.register(tooljellopickaxe); GameRegistry.register(tooljelloaxe); GameRegistry.register(tooljelloshovel); GameRegistry.register(tooljellosword); GameRegistry.register(tooljellohoe); GameRegistry.register(tooljelloshears); //Cat Hair GameRegistry.register(toolcathairpickaxe); GameRegistry.register(toolcathairaxe); GameRegistry.register(toolcathairshovel); GameRegistry.register(toolcathairsword); GameRegistry.register(toolcathairhoe); GameRegistry.register(toolcathairshears); }
@Override public void registerTileEntityAndRenderer() { GameRegistry.registerTileEntity(TileEntityPan.class, "tileentityexsartagine"); GameRegistry.registerTileEntity(TileEntitySmelter.class, "tileentityexsartaginesmelter"); GameRegistry.registerTileEntity(TileEntityPot.class, "tileentityexsartaginepot"); GameRegistry.registerTileEntity(TileEntityRange.class, "tileentityexsartaginerange"); GameRegistry.registerTileEntity(TileEntityRangeExtension.class, "tileentityexsartaginerangeextension"); }
public void registerTileEntityAndRenderer(){ GameRegistry.registerTileEntity(TileEntityPan.class, "tileentityexsartagine"); GameRegistry.registerTileEntity(TileEntitySmelter.class, "tileentityexsartaginesmelter"); GameRegistry.registerTileEntity(TileEntityPot.class, "tileentityexsartaginepot"); GameRegistry.registerTileEntity(TileEntityRange.class, "tileentityexsartaginerange"); GameRegistry.registerTileEntity(TileEntityRangeExtension.class, "tileentityexsartaginerangeextension"); }
/** * Constructor for the BlockAreaProtector class * * This method handles initializing the block and adding it to the GameRegistry. * This contructor is only called once per game launch. */ public BlockAreaProtector() { super(Material.ROCK); setUnlocalizedName(MobBlocker.MODID + ".areaprotector"); setRegistryName("areaprotector"); setHardness(1.5F); GameRegistry.register(this); GameRegistry.register(new ItemBlock(this), getRegistryName()); GameRegistry.registerTileEntity(TileEntityAreaProtector.class, MobBlocker.MODID + "_areaprotector"); }
public static void init() { if (Config.enableAreaProtectorRecipe) GameRegistry.addRecipe(new ItemStack(ModBlocks.areaProtector), "*p~", "bdg", "~e*", '*', Item.getItemFromBlock(Blocks.OBSIDIAN), 'p', Items.POTIONITEM, '~', Item.getItemFromBlock(Blocks.END_STONE), 'b', Items.BONE, 'd', Items.DIAMOND, 'g', Items.GUNPOWDER, 'e', Items.ENDER_PEARL); }
private void registerPayment(ItemStack component, int value) { ArrayList list = new ArrayList(); ItemStack resultStack = new ItemStack(this.paymentOrder, 1, OreDictionary.WILDCARD_VALUE); list.add(resultStack); list.add(component); GameRegistry.addRecipe(new Recipe_Payment(new ItemStack(this.paymentOrder), list, value)); }
@EventHandler public void preInit(FMLPreInitializationEvent e) { VExConfig.preInit(); ModBlocks.init(); ModItems.init(); GameRegistry.registerTileEntity(TileEntityBlockBreaker.class, Refs.MOD_ID + ":blockBreaker"); proxy.preInit(e); }
public static void register(){ GameRegistry.addShapelessRecipe(new ItemStack(ModItems.emptytincan), ModItems.tiningot, ModItems.tiningot); GameRegistry.addSmelting(ModItems.emptytincan, new ItemStack(ModItems.tiningot), 0.5F); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tinfoil, 2), ModItems.tiningot); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.toothbrushshiv), ModItems.toothbrush, Items.FLINT); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tiningot), ModItems.tinfoil, ModItems.tinfoil, ModItems.tinfoil, ModItems.tinfoil); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.woodenchunk, 2), ModItems.brokenstick); GameRegistry.addShapelessRecipe(new ItemStack(Blocks.PLANKS), ModItems.woodenchunk, ModItems.woodenchunk, ModItems.woodenchunk, ModItems.woodenchunk); // Blocks GameRegistry.addSmelting(ModBlocks.tinore, new ItemStack(ModItems.tiningot), 1.0F); GameRegistry.addSmelting(ModBlocks.copperore, new ItemStack(ModItems.copperingot), 1.0F); GameRegistry.addSmelting(ModBlocks.pyriteore, new ItemStack(ModItems.pyriteingot), 1.0F); // Tin GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.tinblock), "TTT", "TTT", "TTT", 'T', ModItems.tiningot); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tiningot, 9), ModBlocks.tinblock); // Copper GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.copperblock), "CCC", "CCC", "CCC", 'C', ModItems.copperingot); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.copperingot, 9), ModBlocks.copperblock); // Pyrite GameRegistry.addShapedRecipe(new ItemStack(ModBlocks.pyriteblock), "PPP", "PPP", "PPP", 'P', ModItems.pyriteingot); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.pyriteingot, 9), ModBlocks.pyriteblock); GameRegistry.addShapedRecipe(new ItemStack(ModItems.tinfoilhelmet), "TTT", "TXT", "XXX", 'T', ModItems.tinfoil); }
@EventHandler public void preInit(FMLPreInitializationEvent event){ ModItems.init(); ModItems.register(); ModBlocks.init(); ModBlocks.register(); GameRegistry.registerWorldGenerator(new ModWorldGeneration(), 3); }
public static void registerAll() { GameRegistry.registerTileEntity(TileCauldron.class, CAULDRON); GameRegistry.registerTileEntity(TileCandle.class, CANDLE); GameRegistry.registerTileEntity(TileApiary.class, APIARY); GameRegistry.registerTileEntity(TileOven.class, OVEN); GameRegistry.registerTileEntity(TileEntityWitchAltar.class, WITCH_ALTAR); GameRegistry.registerTileEntity(TileEntityThreadSpinner.class, THREAD_SPINNER); GameRegistry.registerTileEntity(TileEntityBarrel.class, BARREL); GameRegistry.registerTileEntity(TileEntityGlyph.class, GLYPH); GameRegistry.registerTileEntity(TileEntityCrystalBall.class, CRYSTAL_BALL); GameRegistry.registerTileEntity(TileEntityTarotsTable.class, TAROTS_TABLE); }
public static void blocks() { GameRegistry.addSmelting(ModBlocks.silver_ore, new ItemStack(ModItems.silver_ingot, 1), 0.35F); GameRegistry.addSmelting(Blocks.SAPLING, new ItemStack(ModItems.wood_ash, 4), 0.15F); GameRegistry.addSmelting(ModItems.silver_scales, new ItemStack(ModItems.silver_nugget, 1), 0.20F); GameRegistry.addSmelting(Items.MELON, new ItemStack(ModItems.grilled_watermelon, 1), 0.45F); GameRegistry.addSmelting((new ItemStack(ModItems.fume, 1, 0)), new ItemStack(ModItems.fume, 1, 1), 0.45F); ModMaterials.TOOL_RITUAL.setRepairItem(new ItemStack(ModItems.silver_ingot)); ModMaterials.ARMOR_SILVER.setRepairItem(new ItemStack(ModItems.silver_ingot)); ModMaterials.TOOL_SILVER.setRepairItem(new ItemStack(ModItems.silver_ingot)); }
public BlockLavaLily() { super(Material.GRASS); setRegistryName("lavalily"); setUnlocalizedName(UniqueCrops.MOD_ID + ".lavalily"); setCreativeTab(UniqueCrops.TAB); useNeighborBrightness = true; GameRegistry.register(this); GameRegistry.register(new ItemLavaLily(this), getRegistryName()); }
public ItemPrecisionShovel() { super(ToolMaterial.DIAMOND); setRegistryName("precision.shovel"); setUnlocalizedName(UniqueCrops.MOD_ID + ".precision.shovel"); setCreativeTab(UniqueCrops.TAB); GameRegistry.register(this); }
public static void registerItem(Item item, String name, String key) { if(DEVENV && FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) writeFile(key, key); item.setUnlocalizedName(key).setCreativeTab(TAB); renderMap.put(key, item); GameRegistry.register(item, new ResourceLocation(Reference.MODID + ":" + key)); }
public ItemPixelGlasses(ArmorMaterial material, int renderindex, EntityEquipmentSlot slot) { super(material, renderindex, slot); setRegistryName("pixelglasses"); setUnlocalizedName(UniqueCrops.MOD_ID + ".pixelglasses"); setCreativeTab(UniqueCrops.TAB); setMaxDamage(200); GameRegistry.register(this); }