i just made a creative tab but every time i view it it crashes what did i do wrong here is the crash report
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 5/9/15 10:45 AM
Description: Rendering item
java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
how do you think the lang file will work if it says
tile.null.name=Block 1
tile.null.name=Block 2
that's trying to set the key tile.null.name twice not setting 2 different things names, but besides the point try to run a game with more than 1 tile.null.name = crash
Can I get help i am trying to build a recipe for my item and I cant make it work i need it to go down the cent of the crafting table which is bcb but b has 2 items i am going to make it like this
i just made a creative tab but every time i view it it crashes what did i do wrong here is the crash report
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 5/9/15 10:45 AM
Description: Rendering item
java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
I fixed it I just deleted all of the classes involved with the tabs and rewrote them and it work i apparently missed something could you help me on my question about the crafting too
Can I get help i am trying to build a recipe for my item and I cant make it work i need it to go down the cent of the crafting table which is bcb but b has 2 items i am going to make it like this
This is where you take the initiative and figure out how to do that. I can't be the one to write your mod for you. I'll still give you some pointers (like I already have), and now, you can either, look into vanilla code, look into other mods source code, or google what you are trying to do.
What guide would you recommend I go onto once I reach the end of the 1.7 section? I noticed there's nothing in there about compiling and whatnot, and I'd like to be able to add things to a mod pack and start discovering cross mod issues.
i just made a creative tab but every time i view it it crashes what did i do wrong here is the crash report
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 5/9/15 10:45 AM
Description: Rendering item
java.lang.NullPointerException: Rendering item
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1056)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraft.item.ItemStack.getItemDamage(ItemStack.java:265)
at net.minecraft.client.renderer.entity.RenderItem.renderItemIntoGUI(RenderItem.java:419)
-- Item being rendered --
Details:
Item Type: null
Item Aux: ~~ERROR~~ NullPointerException: null
Item NBT: null
Item Foil: ~~ERROR~~ NullPointerException: null
Stacktrace:
at net.minecraft.client.renderer.entity.RenderItem.renderItemAndEffectIntoGUI(RenderItem.java:585)
at net.minecraft.client.gui.inventory.GuiContainerCreative.func_147051_a(GuiContainerCreative.java:968)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:795)
at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:93)
at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44)
at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:673)
-- Screen render details --
Details:
Screen name: net.minecraft.client.gui.inventory.GuiContainerCreative
Mouse location: Scaled: (305, 19). Absolute: (610, 440)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player85'/606, l='MpServer', x=-123.50, y=82.62, z=251.50]]
Chunk stats: MultiplayerChunkCache: 546, 546
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (-124,64,248), Chunk: (at 4,4,8 in -8,15; contains blocks -128,0,240 to -113,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 19222 game time, 19222 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 65 total; [EntityCreeper['Creeper'/645, l='MpServer', x=-172.50, y=64.00, z=319.50], EntitySkeleton['Skeleton'/649, l='MpServer', x=-139.50, y=28.00, z=212.50], EntityZombie['Zombie'/394, l='MpServer', x=-173.50, y=73.81, z=238.69], EntitySkeleton['Skeleton'/395, l='MpServer', x=-166.56, y=46.00, z=272.56], EntitySkeleton['Skeleton'/396, l='MpServer', x=-172.22, y=46.00, z=274.28], EntitySkeleton['Skeleton'/397, l='MpServer', x=-165.25, y=45.00, z=272.38], EntityZombie['Zombie'/398, l='MpServer', x=-173.56, y=36.00, z=326.56], EntityCow['Cow'/410, l='MpServer', x=-148.69, y=79.96, z=227.53], EntitySkeleton['Skeleton'/411, l='MpServer', x=-149.80, y=72.00, z=220.44], EntityCow['Cow'/412, l='MpServer', x=-144.47, y=78.00, z=232.50], EntityCow['Cow'/413, l='MpServer', x=-144.38, y=80.00, z=224.41], EntityZombie['Zombie'/422, l='MpServer', x=-138.03, y=29.00, z=185.50], EntityBat['Bat'/423, l='MpServer', x=-140.35, y=20.44, z=198.05], EntityCow['Cow'/424, l='MpServer', x=-134.53, y=71.00, z=202.47], EntityCreeper['Creeper'/425, l='MpServer', x=-139.00, y=27.00, z=209.34], EntitySkeleton['Skeleton'/426, l='MpServer', x=-143.22, y=63.00, z=296.78], EntityZombie['Zombie'/427, l='MpServer', x=-142.50, y=63.00, z=295.50], EntitySkeleton['Skeleton'/428, l='MpServer', x=-134.56, y=22.00, z=309.84], EntityZombie['Zombie'/429, l='MpServer', x=-134.50, y=22.00, z=330.50], EntityZombie['Zombie'/430, l='MpServer', x=-134.50, y=22.00, z=328.50], EntityCreeper['Creeper'/437, l='MpServer', x=-116.00, y=79.00, z=281.38], EntityZombie['Zombie'/438, l='MpServer', x=-127.50, y=31.00, z=291.50], EntityCreeper['Creeper'/439, l='MpServer', x=-126.92, y=31.32, z=297.16], EntityBat['Bat'/440, l='MpServer', x=-120.25, y=50.10, z=302.25], EntityBat['Bat'/441, l='MpServer', x=-116.67, y=45.91, z=307.24], EntityBat['Bat'/442, l='MpServer', x=-113.14, y=52.21, z=301.46], EntityCreeper['Creeper'/452, l='MpServer', x=-95.28, y=70.00, z=184.50], EntityZombie['Zombie'/453, l='MpServer', x=-97.69, y=70.25, z=181.53], EntityZombie['Zombie'/454, l='MpServer', x=-96.03, y=68.00, z=258.28], EntityCreeper['Creeper'/455, l='MpServer', x=-104.53, y=64.00, z=295.99], EntityZombie['Zombie'/456, l='MpServer', x=-98.56, y=67.00, z=291.25], EntitySpider['Spider'/457, l='MpServer', x=-103.28, y=67.21, z=291.43], EntityBat['Bat'/463, l='MpServer', x=-83.28, y=39.61, z=184.43], EntityZombie['Zombie'/464, l='MpServer', x=-96.08, y=70.00, z=181.50], EntityPig['Pig'/465, l='MpServer', x=-88.50, y=73.00, z=199.25], EntityPig['Pig'/466, l='MpServer', x=-89.81, y=72.00, z=223.34], EntitySkeleton['Skeleton'/467, l='MpServer', x=-92.50, y=71.00, z=233.13], EntityPig['Pig'/468, l='MpServer', x=-82.47, y=66.00, z=241.44], EntitySkeleton['Skeleton'/469, l='MpServer', x=-94.13, y=66.00, z=252.44], EntityZombie['Zombie'/470, l='MpServer', x=-92.06, y=67.00, z=249.50], EntityCreeper['Creeper'/471, l='MpServer', x=-87.44, y=18.00, z=308.56], EntityCreeper['Creeper'/472, l='MpServer', x=-83.91, y=19.00, z=305.63], EntityZombie['Zombie'/473, l='MpServer', x=-87.50, y=18.00, z=311.50], EntityClientPlayerMP['Player85'/606, l='MpServer', x=-123.50, y=82.62, z=251.50], EntityZombie['Zombie'/481, l='MpServer', x=-81.04, y=64.00, z=171.61], EntityPig['Pig'/482, l='MpServer', x=-72.09, y=63.00, z=233.66], EntityPig['Pig'/483, l='MpServer', x=-67.69, y=70.00, z=279.50], EntityPig['Pig'/484, l='MpServer', x=-66.06, y=64.00, z=285.59], EntitySlime['Slime'/485, l='MpServer', x=-71.63, y=62.00, z=311.04], EntityCow['Cow'/362, l='MpServer', x=-202.94, y=71.00, z=222.25], EntityCow['Cow'/363, l='MpServer', x=-203.75, y=71.00, z=233.78], EntityCow['Cow'/364, l='MpServer', x=-199.16, y=70.00, z=239.56], EntityCow['Cow'/365, l='MpServer', x=-193.06, y=70.00, z=256.28], EntityCreeper['Creeper'/499, l='MpServer', x=-49.31, y=64.00, z=176.00], EntitySkeleton['Skeleton'/500, l='MpServer', x=-54.50, y=68.00, z=244.50], EntityPig['Pig'/501, l='MpServer', x=-59.16, y=70.00, z=252.72], EntityPig['Pig'/502, l='MpServer', x=-51.03, y=72.00, z=272.03], EntityZombie['Zombie'/503, l='MpServer', x=-50.90, y=71.00, z=287.60], EntityCreeper['Creeper'/375, l='MpServer', x=-190.50, y=70.00, z=256.50], EntityZombie['Zombie'/631, l='MpServer', x=-98.50, y=71.00, z=182.50], EntityZombie['Zombie'/504, l='MpServer', x=-58.50, y=69.00, z=287.50], EntitySkeleton['Skeleton'/376, l='MpServer', x=-176.31, y=16.00, z=322.50], EntityZombie['Zombie'/505, l='MpServer', x=-53.91, y=72.00, z=277.41], EntityBat['Bat'/506, l='MpServer', x=-50.75, y=14.65, z=322.25], EntitySkeleton['Skeleton'/510, l='MpServer', x=-45.50, y=73.00, z=279.50]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:415)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2555)
at net.minecraft.client.Minecraft.run(Minecraft.java:973)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 250579672 bytes (238 MB) / 573046784 bytes (546 MB) up to 1413480448 bytes (1348 MB)
JVM Flags: 0 total;
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
FML: MCP v9.05 FML v7.10.85.1291 Minecraft Forge 10.13.2.1291 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{7.10.85.1291} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{10.13.2.1291} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1291.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
merlinroby1_flyingsolo{1.0.0} [flying solo] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.1
OpenGL: GeForce GTX 745/PCIe/SSE2 GL version 4.5.0 NVIDIA 350.12, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNo, the block still shows up as "tile.null.name" even if everything is correct without the lang file.
No... my blocks show tile."the name i set with setBlockName("blockName")".name
Look at Tutorial 5
how do you think the lang file will work if it says
tile.null.name=Block 1
tile.null.name=Block 2
that's trying to set the key tile.null.name twice not setting 2 different things names, but besides the point try to run a game with more than 1 tile.null.name = crash
Can I get help i am trying to build a recipe for my item and I cant make it work i need it to go down the cent of the crafting table which is bcb but b has 2 items i am going to make it like this
RC = My mod item Rawcrystal
ST is a stick
can some one helpe me with this
Post your creative tab class... we can't help if you don't provide relevant code.
does this look right for just one tab thats all i am trying to do note: noticed an error after posting updated the spoiler
package com.aol.merlinmagix121.flyingsolomod.tabs;
import com.aol.merlinmagix121.flyingsolomod.init.ModItems;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class FlyingsoloTab extends CreativeTabs{
String name;
public FlyingsoloTab(int par1,String par2Str)
{
super(par1, par2Str);
this.name = par2Str;
}
@SideOnly(Side.CLIENT)
public Item getTabIconItem(){
if (this.name == "tabflyingsolo"){
return ModItems.staffofFlight;
}
return null;
}
The most likely cause of it crashing is the #getTabIconMethod returning null, or the item specified is null as well.
I fixed it I just deleted all of the classes involved with the tabs and rewrote them and it work i apparently missed something could you help me on my question about the crafting too
Use this:
thank you i just realized i wasted a whole day working on this
how would you code for an item to make you be able to do things such as flying of double your jumping height
Use methods such as #onItemRightClick, or checks for if the player has the item in their inventory (player.inventory.hasItem()).
how would i write that in code
This is where you take the initiative and figure out how to do that. I can't be the one to write your mod for you. I'll still give you some pointers (like I already have), and now, you can either, look into vanilla code, look into other mods source code, or google what you are trying to do.
Ok. I made it to tutorial 5, and I ran into a few problems.
I have an error under IIconRegister and itemIcon in my LegitItem class
When I try to import it, there are no options except make a new class, and others I don't understand:
package com.gmail.brockd9401.modname.items;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import com.gmail.brockd9401.modname.help.Reference;
public class LegitItem extends Item
{
public LegitItem()
{
super();
setCreativeTab(CreativeTabs.tabMisc);
}
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
itemIcon = par1IconRegister.registerIcon(Reference.MODID + ":" + getUnlocalizedName().substring(5));
}
}
Also, I'm getting errors in my BlockCopperOre class under setBlockName and setBlockTextureName
Again I tried to import them but the only option was to create a meathod:
package com.gmail.brockd9401.modname.blocks;
import com.gmail.brockd9401.modname.help.Reference;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class BlockCopperOre extends Block
{
public BlockCopperOre()
{
super(Material.iron);
setBlockName("copperOre");
setBlockTextureName(Reference.MODID + ":" + getUnlocalizedName().substring(5));
setCreativeTab(CreativeTabs.tabBlock);
}
}
Thanks for the help.
What guide would you recommend I go onto once I reach the end of the 1.7 section? I noticed there's nothing in there about compiling and whatnot, and I'd like to be able to add things to a mod pack and start discovering cross mod issues.
Edit: Actually, looks like this one is pretty decent. http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-7/
I keep getting the following error
"Client thread/ERROR]: Using missing texture, unable to load modtest:textures/items/itemtest.png
java.io.FileNotFoundException: modtest:textures/items/itemtest.png"
I checked over the folder and image names multiple times but for some reason, the console keeps saying the texture is missing.
textures/items/itemtest.png is in main/resources/assets/modtest/ ?? And resolution of png is divisible by 16?
Does the line
public static Item omega = new ItemExodus().setUnlocalizedName(“omega”);
belong in the registerItems part?