
Budboy33
Members-
Posts
36 -
Joined
-
Last visited
Everything posted by Budboy33
-
My 1 item is loading during PreInit, so the worldgen should be loading, and also how do I fix the null thing? Edit: Whenever I try to get rid of 'null,' it gives an error that reverts it back when I fix it
-
Crash log:
-
I've been having some troubles with world generation, i'm trying to generate a structure in a plains biome, but whenever I generate new chunks the game crashes Init Code: World Gen Code
-
[1.7.2] Want to make a book for my mod's information ingame
Budboy33 replied to Budboy33's topic in Modder Support
So I tried to make a gui with the Containers and GUIs tutorial on the wiki, but it says it's out of date... Here's the current code for my book: package com.budboy.am.item; import com.budboy.am.creativetab.CreativeTab; import com.budboy.am.gui.GuiIDs; import com.budboy.am.main.AncientMagicMain; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemWritableBook; import net.minecraft.world.World; public class ItemMagicBook extends ItemWritableBook { @Override public boolean onItemUse(ItemStack itemStack, EntityPlayer entityPlayer, World world, int x, int y, int z, int sideHit, float hitVecX, float hitVecY, float hitVecZ) { if (world.isRemote) { entityPlayer.openGui(AncientMagicMain.instance, GuiIDs.MagicBookGui, world, x, y, z); } return true; } public ItemMagicBook() { maxStackSize = 64; setCreativeTab(CreativeTab.magicTab); setUnlocalizedName("magicBook"); setTextureName("am:magicBook"); } } -
[1.7.2] Want to make a book for my mod's information ingame
Budboy33 replied to Budboy33's topic in Modder Support
Okay, I'll try that -
I need help making a book item for my mod's information, like items and recipes and such, and none of the mods that add a book item like this are open source. This is what I have so far: package com.budboy.am.item; import com.budboy.am.creativetab.CreativeTab; import net.minecraft.item.Item; public class ItemMagicBook extends ItemWritableBook { public ItemMagicBook() { maxStackSize = 1; setCreativeTab(CreativeTab.magicTab); setUnlocalizedName("magicBook"); setTextureName("am:magicBook"); } }
-
[1.7.2] Custom pickaxe isn't returning stone when mined [SOLVED]
Budboy33 replied to Budboy33's topic in Modder Support
Ah, it's working now, might have to reduce the mining speed though. -
[1.7.2] Custom pickaxe isn't returning stone when mined [SOLVED]
Budboy33 replied to Budboy33's topic in Modder Support
Ah, I see, and I just replace "material" after ToolMaterial with my custom material? -
[1.7.2] Custom pickaxe isn't returning stone when mined [SOLVED]
Budboy33 replied to Budboy33's topic in Modder Support
Okay, but it's now giving me an error at public ItemEmpoweredPickaxe() { "Implicit super constructor ItemPickaxe() is undefined. Must explicitly invoke another constructor" So what would I do there? Put down a super constructor? -
I made a custom pickaxe, and I don't want it to break, but it doesn't return stone when mined, can someone help please? Pickaxe code: package com.budboy.am.item; import com.budboy.am.creativetab.CreativeTab; import net.minecraft.item.ItemTool; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.EnumRarity; import net.minecraft.item.Item; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemTool; public class ItemEmpoweredPickaxe extends Item { public int getHarvestLevel (ItemStack stack, Block block, int meta){ return 3; } @Override public float getDigSpeed (ItemStack stack, Block block, int meta) { return 20.0f; } protected String getHarvestType () { return "pickaxe"; } @Override public boolean hasEffect(ItemStack par1ItemStack) { return true; } @Override @SideOnly(Side.CLIENT) public EnumRarity getRarity(ItemStack par1ItemStack){ return EnumRarity.epic; } public ItemEmpoweredPickaxe() { maxStackSize = 1; setCreativeTab(CreativeTab.magicTab); setUnlocalizedName("empoweredPickaxe"); setTextureName("am:empoweredPickaxe"); } } Sorry it's not in a spoiler, the spoiler button doesn't seem to work for me
-
Thank you! I put all the item code in ModItems and extended the CommonProxy class to include ModItems, and it seems to be working now. ModItems: public static Item portableWorkbench; and put the item registry code that occurs during preInit in the CommonProxy class public void preInit() { portableWorkbench = new Item().setUnlocalizedName("portableWorkbench").setCreativeTab(CreativeTabs.tabMisc); GameRegistry.registerItem(portableWorkbench, "portableWorkbench"); Not as neat as I had hoped but it should work until I get more of my code done.
-
Yeah, is there anything that's supposed to go there that helps initialize the item code?
-
I've started working on my mod, and am a bit new to forge, I want to know how I would reference an item class that creates the item and registers it, so that it's orderly and I can register all the items at once during preInit, my current code doesn't seem to be working. PreInit code: ModItems code: I've just posted the important code, not much else to see besides imports and basic class stuff.
-
[1.7.2] How to get assets (textures and lang) working with eclipse?
Budboy33 replied to Budboy33's topic in Modder Support
It's working now, thank you! -
[1.7.2] How to get assets (textures and lang) working with eclipse?
Budboy33 replied to Budboy33's topic in Modder Support
I created a /src/main/resources folder inside my project, it's a source folder, and then I created an assets folder with lang and textures inside, and in the project folder it says assets.lang and assets.textures, and I put the en_US.lang file in the assets.lang folder and typed this inside: itemGroup.fishTab=Better Fishing tile.blockFish.name=Fish Block item.itemIronRod.name=Iron Fishing Rod and it still doesn't seem to want to work -
[1.7.2] Shapeless Crafting not working for me?
Budboy33 replied to Budboy33's topic in Modder Support
Sure -
[1.7.2] Shapeless Crafting not working for me?
Budboy33 replied to Budboy33's topic in Modder Support
I got it working! Just had to rewrite my code a bit. package com.budboy.betterfishing; import com.budboy.betterfishing.Proxy.ProxyCommon; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; import cpw.mods.fml.common.*; import cpw.mods.fml.common.Mod.*; import cpw.mods.fml.common.event.*; import cpw.mods.fml.common.registry.*; @Mod(modid = BetterFishing.MODID, version = BetterFishing.VERSION) public class BetterFishing { public static final String MODID = "tutorial"; public static final String VERSION = "1.0"; @Instance(value=MODID) public static BetterFishing instance; @SidedProxy(clientSide = "com.budboy.betterfishing.Proxy.ProxyClient", serverSide = "com.budboy.betterfishing.Proxy.ProxyCommon") public static ProxyCommon proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { GameRegistry.addRecipe(new ItemStack(Blocks.obsidian), new Object[]{ "AAA", "AAA", "AAA", 'A', Items.cookie }); } public void load(FMLPreInitializationEvent event) { } @EventHandler public void init(FMLInitializationEvent event) { } public void load(FMLInitializationEvent event) { proxy.registerRenderers(); { } } @EventHandler public void postInit(FMLPostInitializationEvent event) { } } Thanks everyone for your help to this modding newb. -
[1.7.2] Shapeless Crafting not working for me?
Budboy33 replied to Budboy33's topic in Modder Support
It's now showing an error at the line: proxy.registerRenderers(); How do I fix it? -
[1.7.2] Shapeless Crafting not working for me?
Budboy33 replied to Budboy33's topic in Modder Support
Still didn't work, here's new code: package com.budboy.betterfishing; import com.budboy.betterfishing.Proxy.ProxyCommon; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; 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.registry.GameRegistry; @Mod(modid = BetterFishing.MODID, version = BetterFishing.VERSION, name =BetterFishing.MOD_NAME) public class BetterFishing { public static final String MOD_NAME = "Better Fishing"; public static final String MODID = "BF"; public static final String VERSION = "0.0.1"; @Instance(value = MODID) public static BetterFishing instance; @SidedProxy(clientSide = "com.budboy.betterfishing.Proxy.ProxyClient", serverSide = "com.budboy.betterfishing.proxy.proxyCommon") public static ProxyCommon proxy; @EventHandler public void init(FMLInitializationEvent event) { GameRegistry.addShapelessRecipe(new ItemStack(Blocks.grass), Blocks.vine, Blocks.dirt); } @EventHandler public void load(FMLInitializationEvent event){ proxy.registerRenderers(); { } } } -
I'm a bit new to coding with Minecraft Forge and want to add a shapeless crafting recipe for grass using vines and dirt, and the grass isn't appearing when I put a vine and dirt in, and my code isn't giving any errors telling what's wrong, so what IS wrong? package com.budboy.betterfishing; import com.budboy.betterfishing.Proxy.ProxyCommon; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; 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.registry.GameRegistry; @Mod(modid = BetterFishing.MODID, version = BetterFishing.VERSION, name =BetterFishing.MOD_NAME) public class BetterFishing { public static final String MOD_NAME = "Better Fishing"; public static final String MODID = "BF"; public static final String VERSION = "0.0.1"; @Instance(value = MODID) public static BetterFishing instance; @SidedProxy(clientSide = "com.budboy.betterfishing.Proxy.ProxyClient", serverSide = "com.budboy.betterfishing.proxy.proxyCommon") public static ProxyCommon proxy; @EventHandler public void init(FMLInitializationEvent event) { GameRegistry.addShapelessRecipe(new ItemStack(Blocks.grass), Blocks.vine, 1, Blocks.dirt, 1); } @EventHandler public void load(FMLInitializationEvent event){ proxy.registerRenderers(); { } } } Proxy Common Code: package com.budboy.betterfishing.Proxy; public class ProxyCommon { public void registerRenderers(){ } } Proxy Client Code: package com.budboy.betterfishing.Proxy; public class ProxyClient extends ProxyCommon { @Override public void registerRenderers(){ } }
-
Okay, so did that, but am now getting a new error: [13:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [13:40:59] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [13:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [13:40:59] [main/INFO] [FML]: Forge Mod Loader version 7.2.129.1047 for Minecraft 1.7.2 loading [13:40:59] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre8 [13:40:59] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [13:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [13:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [13:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [13:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [13:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [13:40:59] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [13:41:00] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/Jon/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1047/forgeSrc-1.7.2-10.12.0.1047.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will work! STOP NOW, get a clean copy and try again! [13:41:00] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem! [13:41:00] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/Jon/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.0.1047/forgeSrc-1.7.2-10.12.0.1047.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it [13:41:00] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [13:41:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [13:41:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [13:41:01] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [13:41:01] [main/ERROR] [LaunchWrapper]: Unable to launch java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) ~[?:1.8.0] at java.lang.Runtime.loadLibrary0(Unknown Source) ~[?:1.8.0] at java.lang.System.loadLibrary(Unknown Source) ~[?:1.8.0] at org.lwjgl.Sys$1.run(Sys.java:73) ~[lwjgl-2.9.0.jar:?] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0] at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.0.jar:?] at org.lwjgl.Sys.loadLibrary(Sys.java:95) ~[lwjgl-2.9.0.jar:?] at org.lwjgl.Sys.<clinit>(Sys.java:112) ~[lwjgl-2.9.0.jar:?] at net.minecraft.client.Minecraft.getSystemTime(Minecraft.java:2727) ~[Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:40) ~[Main.class:?] ... 6 more What am I doing wrong here?