Jump to content

CausticLasagne

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by CausticLasagne

  1. Ok. I'll explore the creativetabs class. One more thing. I tried to use the record with a jukebox, and it showed the rainbow text, but there was no audio. I even checked my audio settings. It returned this: [03:38:24] [Client thread/WARN]: Unable to play unknown soundEvent: TheMoneyMod:audio/music/test.ogg
  2. Yes, you are right. I have no idea what i'm doing. How do you suggest I go about making a tab, based on the horrible code you've seen? Also, i'm testing the record in my mod to see if it works. According to what you've said, it will dig up a file in assets/themoneymod/audio/music/test.ogg Here goes! Ok. It works with the jukebox, only it doesn't play the audio. It displays the record name and everything, but no audio. This is what I got: [03:38:24] [Client thread/WARN]: Unable to play unknown soundEvent: TheMoneyMod:audio/music/test.ogg
  3. Ohhh, a Container Item. I thought you meant like a Container like a chest or furnace. Yeah, I get it now. Stacked Items like a Russian doll. ResourceLocation never was obvious because in the mojang code, they don't need to use domains.. I think. so it should result new ResourceLocation("TheMoneyMod", "Audio/Music/Sample.ogg")code] ok cool. seems easy.
  4. This is the Entire code for my CreativeTabs file. It seems weird, but it works. I just can't set an image in the background. I've been trying for the the 3 days it took me to make the mod, from the ground up. TAB_CREATIVE.java package com.CausticLasagnesMods.TheMoneyMod; import net.minecraftforge.event.world.*; import net.minecraftforge.oredict.*; import net.minecraftforge.transformers.*; import net.minecraft.init.*; ... // Imports removed to save space. import java.util.Random; public class TAB_CREATIVE { public Object instance; private String backgroundImageName; public static CreativeTabs tab = new CreativeTabs("The Money Mod!") { @SideOnly(Side.CLIENT) public Item getTabIconItem() { return TheMoneyMod.ITM_NOTE_100cR; } }; public TAB_CREATIVE(int id, String name){} public void load(){ } public void registerRenderers(){} public void generateNether(World world, Random random, int chunkX, int chunkZ){} public void generateSurface(World world, Random random, int chunkX, int chunkZ){} public int addFuel(ItemStack fuel){ return 0; } public void serverLoad(FMLServerStartingEvent event){} public void preInit(FMLPreInitializationEvent event){} public TAB_CREATIVE setBackgroundImageName(String backgroundImageName) { // TODO Auto-generated method stub this.backgroundImageName = ""; return this; } } Setting the Tab for an Item, and declaring the tab in THEMONEYMOD.java this.setCreativeTab(TheMoneyMod.TAB_CREATIVE.tab); TAB_CREATIVE = new TAB_CREATIVE(CreativeTabs.getNextID(), "The_Money_Mod").setBackgroundImageName("tab_CreativeTab"); Does it look funny? It works, but I can't set a background, no matter what I type in.
  5. Sorry, I'm new to the modding scene and lack of tutorials and detail has forced me to create messy code. I do understand java, just not minecraft modding. 1. Yes, I have tried this and it doesn't work. I call the function setBackgroundImageName, and minecraft completely ignores it. Am I supposed to call that function when I add the tab to the registry? Because that's what I'm doing. 2. ResourceLocation. Where do I put the sounds? public ResourceLocation getRecordResource(String name) { return new ResourceLocation(name); // } I know it needs to be an ogg file and under a certain size... 3. I want to change an item in the crafting grid as it is crafted, like when lavabuckets in furnaces return an empty bucket. 4. so these methods will allow me to detect if an item has been crafted with? [glow=green,2,300]Thanks for helping.[/glow] (Turns out that these special stuff don't work on Windows 10: Edge.)
  6. Current Creative Tab Src. Am I doing it Right? package com.CausticLasagnesMods.TheMoneyMod; import cpw.mods.fml.client.*; import cpw.mods.fml.client.registry.*; import net.minecraftforge.transformers.*; import net.minecraft.init.*; ... More import java.util.Random; public class TAB_CREATIVE { public Object instance; private String backgroundImageName; public static CreativeTabs tab = new CreativeTabs("The Money Mod!") { @SideOnly(Side.CLIENT) public Item getTabIconItem() { return TheMoneyMod.ITM_NOTE_100cR; } }; public TAB_CREATIVE(int id, String name){} public void load(){ } public void registerRenderers(){} public void generateNether(World world, Random random, int chunkX, int chunkZ){} public void generateSurface(World world, Random random, int chunkX, int chunkZ){} public int addFuel(ItemStack fuel){ return 0; } public void serverLoad(FMLServerStartingEvent event){} public void preInit(FMLPreInitializationEvent event){} public TAB_CREATIVE setBackgroundImageName(String backgroundImageName) { // TODO Auto-generated method stub this.backgroundImageName = ""; return this; } }
  7. Hi guys, I'm making a mod called TheMoneyMod!, which adds currency to minecraft in Australian currency.. ish. I need help on several items, 1. How do you add a background to a Creative Tab? I had it at one point but none of the items rendered on the page. 2. How do you add a Record? I can't get it to work and this ResourceLocation is confusing me. 3. How do you make an item stay in the crafting table? 4. How can you detect if an item is crafted as an ingredient, and then returned to the Inventory?, like buckets, for example. I have limited forge experience, but I am learning. I'll understand most of what you post. Thanks. Caustic Lasagne.
  8. Yes, I tried to paste that particular file into Pastebin, but it was too big. I even tried to use Spoilers, but they don't work. I don't know what happened, but I played a LAN with my brother, and messed around with my mods folder, and now the memory leak doesn't occur. Strange, Very Strange. I guess that minecraft was having a hissy fit that day, as it always does. No errors to report, you may terminate this thread. Also, are there tutorials or videos on how to format posts? When I click one of the format buttons, like super/sub script or the spoiler button, it does nothing... Help?
  9. Should I paste them here? I would look messy. I already tried Pastebin, but the files are too big.
  10. Hi everyone. I'm experiencing a massive problem with minecraft forge affecting versions Forge-10.13.4.1472-1.7.10 and Up. When Minecraft is started, it loads normally until initialization is complete, and when it starts stitching textures, it stays stuck on "Texture Creation - Stitching Textures 1/3" and chews up nearly 15Gb of my RAM. I'm not sure if it is a memory leak, but it looks like one to me. I opened task manager and watched my memory usage soar. I have also run the latest build, and it too has the same issue. If you would like further information, just ask. CausticLasagne.
×
×
  • Create New...

Important Information

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