
Robo51
Forge Modder-
Posts
53 -
Joined
-
Last visited
Everything posted by Robo51
-
I managed to fix my slot problem. But I'm still having trouble with the block states changes. I've tried a few different things but nothing has worked as of yet. Does anyone have any ideas?
-
I just finished working thorough a tutorial and trying a few things out for my self on making a dual-input machine. It works just fine but it has a problem I seem to be unable to fix. I can put items into it, and after combining one set of items it changes the block face back to its inactive state even if it has more to process(it continues to process) Here is the, blockclass: tileentityclass: i'm pretty sure the slots thing is related to isItemValidForSlot but I can't wrap my head around how I would fix it.
-
Never-mind I managed to figure it out.
-
I've been playing around with events recently and I'm having some trouble. When I right click the double paper on water nothing happens. I want it to turn into salted paper. The system print, prints out the coords of the block I clicked on rather than the water(I'm not sure if that right or not). This is the code I'm using, its cannibalized bucket code: Am I missing something?
-
[1.7.10] Getting a block to look right in your inventory.
Robo51 replied to Robo51's topic in Modder Support
That worked great thank you. That whole page looks like its going to be very helpful, thank you. -
[1.7.10] Getting a block to look right in your inventory.
Robo51 replied to Robo51's topic in Modder Support
I changed it to this: And got this as a result: Fiddling around with it more couldn't produce anything better. -
I've been fideling around with one of my block textures (Heres the code for that:) It looks fine when placed in the world but looks different while in my inventory. I kind of understand why it looks this way but I can't figure out how to fix it, and make it look like it does when placed.
-
I tired changing the package to lowercase and it threw a method doesn't exist when packaged. I'm not sure whats wrong still, but I know how to make it work. As long as i remember to rename the folder the textures are stored in its fine. I may fiddle with it at a later time. Thanks so much for your help its much appreciated. Also how did my code read?
-
Okay I have figured out a little more, for some reason when i run: gradlew build It takes the folder where all of the textures are and capitalizes it and I have no idea why. Manually changing the folder back to lowercase fixes it but I can't figure out why it get capitalized in the first place.
-
So I have become thoroughly confused by this capitalization thing. Here is the GitHub for my mod: https://github.com/Robo51/Newt I'm hoping someone could tell me what needs to be capitalized and what doesn't. I've tried several different things and some of them won't load the mod at all, and the other tries won't load the textures. I'm not sure what I'm doing wrong anymore.
-
I've discovered whats wrong, when the mod is packaged for some reason it capitalizes the file my textures are stored in. I've tried changing all the values I could think of to make it lowercase but nothing seems to work. My main class file is capitalized is that why it capitalizes the texture folder?
-
I'm not sure what changed but I tore the files apart and put together a new mod file and it works now. No idea what changed. Thank you for your help. Also what would cause the textures to load fine in the dev environment but not load once the mod is packaged?
-
Also I should mention earlier versions worked fine. But I changed a lot.
-
I've been working on my mod for a little bit now and things have been going pretty well so far. However when I tired to put the mod on my little local server so a friend and I could test it the server crashed. And I have no idea what to do. Ive scoured my mod files looking for what could be causing the error but I can't find anything. This is the error log:
-
Oh my gosh I figured it out. I feel silly. I changed: Forge Mods\src\main\resources\assets\Newt\textures\items\redcoal.png To: Forge Mods\src\main\resources\assets\newt\textures\items\redcoal.png and it worked. Thanks for your help.
-
I have saved and refreshed. I even restarted and that didn't help.
-
Having recently decided to try my hand at modding I've been having fun learning new things. But now I've hit a wall, I can't get a texture to load and I can't figure out why. RedCoal.java package Newt; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class RedCoal extends Item { public RedCoal() { setUnlocalizedName(Reference.MODID + "_" + "redcoal"); setTextureName(Reference.MODID+":"+"redcoal"); setCreativeTab(CreativeTabs.tabMaterials); } } Reference.java package Newt; import net.minecraft.item.Item; public class Reference { public static final String MODID = "Newt"; public static final String VERSION = "0.1"; } Newt.java package Newt; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; @Mod(modid = Reference.MODID, version = Reference.VERSION) public class Newt { public static final String MODID = "Newt"; public static final String VERSION = "0.1"; public static Item RedCoal; @EventHandler public void init(FMLPreInitializationEvent event) { RedCoal = new RedCoal(); GameRegistry.registerItem(RedCoal, "RedCoal"); GameRegistry.addRecipe(new ItemStack(Blocks.mossy_cobblestone), new Object[] { "AAA", "ABA", "AAA", 'A', Blocks.sapling, 'B', Blocks.cobblestone }); GameRegistry.addRecipe(new ItemStack(Blocks.stonebrick, 1, 1), new Object[] { "AAA", "ABA", "AAA", 'A', Blocks.sapling, 'B', Blocks.stonebrick }); } } And this is the directory tree: Forge Mods\src\main\resources\assets\Newt\textures\items\redcoal.png When I load up the test environment in Eclipse the log spits out this: [10:07:21] [Client thread/ERROR]: Using missing texture, unable to load newt:textures/items/redcoal.png java.io.FileNotFoundException: newt:textures/items/redcoal.png I don't understand why the localizations are working fine, but the textures wont load.