
TheDogePwner
Members-
Posts
88 -
Joined
-
Last visited
Everything posted by TheDogePwner
-
[1.8] [UNSOLVED] Shapeless Recipes Problem?
TheDogePwner replied to TheDogePwner's topic in Modder Support
Can you give me a link to an example of an IRecipe please? -
[1.8] [UNSOLVED] Shapeless Recipes Problem?
TheDogePwner replied to TheDogePwner's topic in Modder Support
Okay, then how do I make the recipe require 3 coal? -
Hi, I have a shapeless recipe: GameRegistry.addShapelessRecipe(new ItemStack(UltraCraft.steelDust), new ItemStack(Items.coal, 3, 0), Items.iron_ingot); But for the item to craft, it only takes 1 coal.
-
[1.8] [SOLVED] Names of in-game objects acting funny?
TheDogePwner replied to TheDogePwner's topic in Modder Support
Okay, I figured it out! I got the .lang file from my 1.8.jar file. I then figured out from there how the files work. Thanks Draco! -
[1.8] [SOLVED] Names of in-game objects acting funny?
TheDogePwner replied to TheDogePwner's topic in Modder Support
I have tried to create a en_US.lang file, but when I Save As a .lang file, it just creates a en_US.lang.txt file... -
Hi, I have an ingot called SteelIngot. I add it to the game with GameRegistry.registerItem(steelIngot, "SteelIngot", UltraCraft.MODID); but the in-game name is item.SteelIngot.name. Why is this?
-
[1.8] [SOLVED] Error loading .json file?
TheDogePwner replied to TheDogePwner's topic in Modder Support
Oh my gosh, thank you SO much! It has taken me so long to find an answer like this! Kudos to you! -
[1.8] [SOLVED] Error loading .json file?
TheDogePwner replied to TheDogePwner's topic in Modder Support
It's located in ultracraft/models/item/SteelIngot.json -
Hi, I have a texture for an item that doesn't load (has default texture). Here is the debug output: [11:01:06] [Client thread/ERROR] [FML]: Model definition for location ultracraft:item.SteelIngot#inventory not found Here is the .json file: Here is how I set the texture in the init method: And here is my SteelIngot class:
-
[1.8] Broken build.gradle not loading resources? [Unsolved]
TheDogePwner replied to TheDogePwner's topic in Modder Support
I tried running it in debug mode, but that didn't help. -
[1.8] Broken build.gradle not loading resources? [Unsolved]
TheDogePwner replied to TheDogePwner's topic in Modder Support
No, I'm using Eclipse Kepler. -
[1.8] Broken build.gradle not loading resources? [Unsolved]
TheDogePwner replied to TheDogePwner's topic in Modder Support
Also, in case anyone is curious, I'm trying to load the texture into a creative tab. -
[1.8] Broken build.gradle not loading resources? [Unsolved]
TheDogePwner replied to TheDogePwner's topic in Modder Support
My public static String MODID is equal to "ultracraft" (and was before). What I did now was, I deleted the entire "build" folder and re-ran gradle build . Now, there are no files or folders in build\resources\main except for mcmod.info. I'm not sure if this good or bad, but the texture still doesn't load. -
[1.8] Broken build.gradle not loading resources? [Unsolved]
TheDogePwner replied to TheDogePwner's topic in Modder Support
Okay, this is my new build.gradle: buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' version = "1.8-11.14.1.1334" group= "uc.mainmod" archivesBaseName = "ultracraft" minecraft { version = "1.8-11.14.1.1334" runDir = "eclipse" mappings = "snapshot_20141130" } dependencies { } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version include 'mcmod.info' from(sourceSets.main.resources.srcDirs) { expand 'version':project.version, 'mcversion':project.minecraft.version } } But the textures still do not load into the build/resources/main/assets/UltraCraft/ folder. -
[1.8] Broken build.gradle not loading resources? [Unsolved]
TheDogePwner replied to TheDogePwner's topic in Modder Support
Here is my debug output: [12:34:12] [main/INFO] [GradleStart]: Extra: [] [12:34:12] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Lucas/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:34:12] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:34:13] [main/INFO] [FML]: Forge Mod Loader version 8.0.37.1334 for Minecraft 1.8 loading [12:34:13] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre8 [12:34:13] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:34:13] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:34:13] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:34:13] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:34:13] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:34:16] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:34:16] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:34:17] [Client thread/INFO]: Setting user: Player897 [12:34:20] [Client thread/INFO]: LWJGL Version: 2.9.1 [12:34:21] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [12:34:21] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1334 Initialized [12:34:21] [Client thread/INFO] [FML]: Replaced 204 ore recipies [12:34:21] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [12:34:21] [Client thread/INFO] [FML]: Config directory created successfully [12:34:21] [Client thread/INFO] [FML]: Searching C:\Users\Lucas\Desktop\Forge Source\eclipse\mods for mods [12:34:21] [Client thread/ERROR] [FML]: The mcmod.info file in bin cannot be parsed as valid JSON. It will be ignored com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 8 column 5 at com.google.gson.internal.Streams.parse(Streams.java:56) ~[streams.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:84) ~[JsonParser.class:?] at com.google.gson.JsonParser.parse(JsonParser.java:59) ~[JsonParser.class:?] at net.minecraftforge.fml.common.MetadataCollection.from(MetadataCollection.java:56) [MetadataCollection.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:69) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:53) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?] at net.minecraftforge.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?] at net.minecraftforge.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?] at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:348) [Loader.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:469) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:446) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:356) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 8 column 5 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:659) ~[TypeAdapters$25.class:?] at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?] at com.google.gson.internal.Streams.parse(Streams.java:44) ~[streams.class:?] ... 22 more [12:34:21] [Client thread/INFO] [ultracraft]: Mod ultracraft is missing the required element 'name'. Substituting ultracraft [12:34:22] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:34:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ultracraft] at CLIENT [12:34:23] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ultracraft] at SERVER [12:34:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ultracraft [12:34:23] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:34:23] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [12:34:23] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:34:23] [Client thread/INFO] [FML]: Applying holder lookups [12:34:23] [Client thread/INFO] [FML]: Holder lookups applied [12:34:24] [sound Library Loader/INFO]: Starting up SoundSystem... [12:34:24] [Thread-6/INFO]: Initializing LWJGL OpenAL [12:34:24] [Thread-6/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:34:25] [Thread-6/INFO]: OpenAL initialized. [12:34:25] [sound Library Loader/INFO]: Sound engine started [12:34:28] [Client thread/INFO]: Created: 512x512 textures-atlas [12:34:29] [Client thread/INFO] [sTDOUT]: [uc.mainmod.UltraCraft:init:27]: init [12:34:29] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [12:34:29] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:ultracraft [12:34:30] [Client thread/INFO]: SoundSystem shutting down... [12:34:30] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [12:34:30] [sound Library Loader/INFO]: Starting up SoundSystem... [12:34:30] [Thread-8/INFO]: Initializing LWJGL OpenAL [12:34:30] [Thread-8/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [12:34:30] [Thread-8/INFO]: OpenAL initialized. [12:34:30] [sound Library Loader/INFO]: Sound engine started [12:34:33] [Client thread/INFO]: Created: 512x512 textures-atlas -
Hi, I have a problem that I think is with my build.gradle file. The mod loads in build/libs, but nothing inside of the assets folder loads (except the subfolders). There is no content, like .json files and .png images. When I run gradle build in cmd, it throws no errors. Here is the CMD output: https://www.dropbox.com/s/9dsa03c72gd91r9/CMDOutput.PNG?dl=0 Here is my gradle.build: buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } maven { name = "sonatype" url = "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' version = "1.8-11.14.1.1334" group= "net.extend.mod" archivesBaseName = "extend" minecraft { version = "1.8-11.14.1.1334" runDir = "eclipse" mappings = "snapshot_20141130" } dependencies { } processResources { inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version include 'mcmod.info' from(sourceSets.main.resources.srcDirs) { expand 'version':project.version, 'mcversion':project.minecraft.version } }
-
Thank you so much! I have spent weeks looking everywhere for an answer like this... kudos to you!
-
Also, in case it's easier, tell me your Skype name.
-
And here is the .json: https://www.dropbox.com/s/l3fop4ooolehfs2/SteelIngot.json?dl=0
-
Here is my main class: package uc.mainmod; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import uc.items.SteelIngot; import uc.tabs.MechanicalItemsTab; @Mod(modid = UltraCraft.MODID, version = UltraCraft.VERSION) public class UltraCraft { public static final String MODID = "examplemod"; public static final String VERSION = "1.0"; public static Item steelIngot; public static CreativeTabs mechanicalItemsTab; @EventHandler public void init(FMLInitializationEvent event) { RenderItem renderer = getRenderer(); steelIngot = new SteelIngot(); mechanicalItemsTab = new MechanicalItemsTab("Mechanical Items"); GameRegistry.registerItem(UltraCraft.steelIngot, "SteelIngot", "UltraCraft"); renderItem(renderer, steelIngot); } public void renderItem(RenderItem renderer, Item item) { renderer.getItemModelMesher().register( item, 0, new ModelResourceLocation("UltraCraft:" + item.getUnlocalizedName(), "inventory")); } public RenderItem getRenderer() { return Minecraft.getMinecraft().getRenderItem(); } } Here is a image of my folder structure: https://www.dropbox.com/s/ckiuxo2ovat0uo9/ForgeStructure.PNG?dl=0
-
I tried that now, but still nothing. Thanks for the answer, though.
-
Oh, and here is my JSON file: { "parent": "builtin/generated", "textures": { "layer0": "UltraCraft:textures/items/SteelIngot" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
-
Hi, I was wondering how to render items in 1.8. I have: Item item = new SteelIngot(); RenderItem renderer = Minecraft.getMinecraft().getRenderItem(); renderer.getItemModelMesher().register( item, 0, new ModelResourceLocation("UltraCraft:models/item/" + item.getUnlocalizedName(), "inventory")); Here is my SteelIngot class: package uc.items; import net.minecraft.item.Item; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import uc.mainmod.UltraCraft; public class SteelIngot extends Item { public SteelIngot() { setMaxStackSize(64); setCreativeTab(UltraCraft.mechanicalItemsTab); setUnlocalizedName("SteelIngot"); } } Yet somehow my CreativeTab that has SteelIngot for its logo has a default missing texture.
-
Assuming my modid is UltraCraft, and my item is called steelIngot, and the unlocalizedName is "SteelIngot", wouldn't the code be: renderItem.getItemModelMesher().register(steelIngot, 0, new ModelResourceLocation("UltraCraft:models/item/" + yourItem.getUnlocalizedName(), "inventory")); My .json is called SteelIngot.json, and it's located in src\main\resources\assets\UltraCraft\models\item.
-
Hi, I have been working on a creative tab for Minecraft. It shows up in the creative inventory, but it has no texture (pink and black squares). I tried: public Item getTabIconItem() { return UltraCraft.steelIngot; } And here is the code for SteelIngot: package uc.items; import net.minecraft.item.Item; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.registry.GameRegistry; import uc.mainmod.UltraCraft; public class SteelIngot extends Item { public SteelIngot() { setMaxStackSize(64); setCreativeTab(UltraCraft.mechanicalItemsTab); setUnlocalizedName("SteelIngot"); } } Here is the .json file for SteelIngot: { "parent": "builtin/generated", "textures": { "layer0": "UltraCraft:textures/items/SteelIngot" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }