Jump to content

Item Texture not showing in the game


Gameatro

Recommended Posts

I am learning to make Minecraft mods. I added a new item into the game. Here is my code for @EventBusSubscriber :

package com.gameatro.FirstMod;

import com.gameatro.FirstMod.init.ModItemGroups;
import com.gameatro.FirstMod.util.Reference;

import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.registries.IForgeRegistryEntry;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.RegistryEvent;

import net.minecraftforge.eventbus.api.SubscribeEvent;

@EventBusSubscriber(modid = Reference.MODID, bus = EventBusSubscriber.Bus.MOD)
public class ModEventSubscriber {
	@SubscribeEvent
	public static void onRegisterItems(RegistryEvent.Register<Item> event) {
		event.getRegistry().registerAll(
				setup(new Item(new Item.Properties().group(ModItemGroups.MOD_ITEM_GROUP)), "example_item")
			);
	}
	public static <T extends IForgeRegistryEntry<T>> T setup(final T entry, final String name) {
		return setup(entry, new ResourceLocation(Reference.MODID, name));
	}

	public static <T extends IForgeRegistryEntry<T>> T setup(final T entry, final ResourceLocation registryName) {
		entry.setRegistryName(registryName);
		return entry;
	}
}

My modid is "fm" and I have placed my texture image "example_item.png" at the location "src\main\resources\assets\fm\models\item". I also have a "example_item.json" at the same location and the code inside it is:

{
	"item.fm.example_item": "Example Item",
	"itemGroup.fm": "Example Mod"
}

But the image does not show in the game on building the mod. It just shows blank and pink texture. How do I fix this? What am I doing wrong?

Link to comment
Share on other sites

12 minutes ago, diesieben07 said:

Change this before you do anything else. ModIDs need to be unique. "fm" is not unique.

 

Post the game log.

I think this is the relevant log

[m[1;31m[07:13:59] [Server-Worker-2/ERROR] [minecraft/AtlasTexture]: Using missing texture, unable to load fm:textures/item/example_item.png : java.io.FileNotFoundException: fm:textures/item/example_item.png

But why is it looking for that in the "textures" folder. The tutorial I am following tells to put it in the folder I did. What changes should I make?

Link to comment
Share on other sites

16 minutes ago, diesieben07 said:

Please post the complete log.

[LoginForm] Catched a wait task from this listener, waiting...
instancefor: Account{displayName=Gameatro, type=TLAUNCHER, accessToken=(not null), userid=Gameatro, uuid=d21b6b26028811e8a268002590a1379b, username=Gameatro}
[TlauncherAuthenticator] Staring to authenticate: Account{displayName=Gameatro, type=TLAUNCHER, accessToken=(not null), userid=Gameatro, uuid=d21b6b26028811e8a268002590a1379b, username=Gameatro}
[TlauncherAuthenticator] hasUsername: Gameatro
[TlauncherAuthenticator] hasPassword: false
[TlauncherAuthenticator] hasAccessToken: true
[TlauncherAuthenticator] Loggining in with token
[TlauncherAuthenticator] Log in successful!
[TlauncherAuthenticator] hasUUID: true
[TlauncherAuthenticator] hasAccessToken: true
[TlauncherAuthenticator] hasProfiles: false
[TlauncherAuthenticator] hasProfile: false
[TlauncherAuthenticator] hasProperties: true
[LoginForm] Login was OK. Trying to launch now.
[Launcher] Running under TLauncher 2.68
[Launcher] Collecting info...
[TLauncherManager] before clearLibrary C:\Users\shind\AppData\Roaming\.minecraft\mods\modid-1.0.jar
[TLauncherManager] written:  []
[TLauncherManager] after clearLibrary C:\Users\shind\AppData\Roaming\.minecraft\mods\modid-1.0.jar
[Launcher] Force update: false
[Launcher] Selected version: Forge 1.15.1
[Launcher] Selected account: Account{displayName=Gameatro, type=TLAUNCHER, accessToken=(not null), userid=Gameatro, uuid=d21b6b26028811e8a268002590a1379b, username=Gameatro}
[Launcher] Version sync info: VersionSyncInfo{id='Forge 1.15.1',
local=CompleteVersion{id='Forge 1.15.1', time=Fri Dec 20 09:48:05 IST 2019, release=Mon Dec 16 15:59:47 IST 2019, type=modified, class=cpw.mods.modlauncher.Launcher, minimumVersion=21, assets='1.15', source=LOCAL_VERSION_REPO, list=net.minecraft.launcher.updater.ExtraVersionList@474f4267, libraries=[Library{name='net.minecraftforge:forge:1.15.1-30.0.14', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.ow2.asm:asm:7.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.ow2.asm:asm-commons:7.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.ow2.asm:asm-tree:7.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='cpw.mods:modlauncher:5.0.0-milestone.4', rules=null, natives=null, extract=null, packed='null'}, Library{name='cpw.mods:grossjava9hacks:1.1.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.minecraftforge:accesstransformers:2.0.0-milestone.1-shadowed', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.minecraftforge:eventbus:2.0.0-milestone.1-service', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.minecraftforge:forgespi:2.0.0-milestone.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.minecraftforge:coremods:2.0.0-milestone.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.minecraftforge:unsafe:0.2.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.electronwill.night-config:core:3.6.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.electronwill.night-config:toml:3.6.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.jline:jline:3.12.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.maven:maven-artifact:3.6.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.jodah:typetools:0.6.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.logging.log4j:log4j-api:2.11.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.logging.log4j:log4j-core:2.11.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.minecrell:terminalconsoleappender:1.2.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.sf.jopt-simple:jopt-simple:5.0.4', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.mojang:patchy:1.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='oshi-project:oshi-core:1.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.java.dev.jna:jna:4.4.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.java.dev.jna:platform:3.4.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.ibm.icu:icu4j-core-mojang:51.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.mojang:javabridge:1.0.22', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.sf.jopt-simple:jopt-simple:5.0.3', rules=null, natives=null, extract=null, packed='null'}, Library{name='io.netty:netty-all:4.1.25.Final', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.google.guava:guava:21.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.commons:commons-lang3:3.5', rules=null, natives=null, extract=null, packed='null'}, Library{name='commons-io:commons-io:2.5', rules=null, natives=null, extract=null, packed='null'}, Library{name='commons-codec:commons-codec:1.10', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.java.jinput:jinput:2.0.5', rules=null, natives=null, extract=null, packed='null'}, Library{name='net.java.jutils:jutils:1.0.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.mojang:brigadier:1.0.17', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.mojang:datafixerupper:2.0.24', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.google.code.gson:gson:2.8.0', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.mojang:authlib:1.5.25', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.commons:commons-compress:1.8.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.httpcomponents:httpclient:4.3.3', rules=null, natives=null, extract=null, packed='null'}, Library{name='commons-logging:commons-logging:1.1.3', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.httpcomponents:httpcore:4.3.2', rules=null, natives=null, extract=null, packed='null'}, Library{name='it.unimi.dsi:fastutil:8.2.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.logging.log4j:log4j-api:2.8.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.apache.logging.log4j:log4j-core:2.8.1', rules=null, natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-jemalloc:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-jemalloc:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-openal:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-openal:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-opengl:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-opengl:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-glfw:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-glfw:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-stb:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-stb:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-tinyfd:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-tinyfd:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-jemalloc:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-jemalloc:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-openal:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-openal:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-opengl:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-opengl:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-glfw:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-glfw:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-stb:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-tinyfd:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-tinyfd:3.2.1', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-macos}, extract=null, packed='null'}, Library{name='org.lwjgl:lwjgl-stb:3.2.2', rules=[Rule{action=ALLOW, os=null, features=null}, Rule{action=DISALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=null, packed='null'}, Library{name='com.mojang:text2speech:1.11.3', rules=null, natives=null, extract=null, packed='null'}, Library{name='com.mojang:text2speech:1.11.3', rules=null, natives={LINUX=natives-linux, WINDOWS=natives-windows}, extract=net.minecraft.launcher.versions.ExtractRules@30561e1, packed='null'}, Library{name='ca.weblite:java-objc-bridge:1.0.0', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives={OSX=natives-osx}, extract=net.minecraft.launcher.versions.ExtractRules@1798b884, packed='null'}, Library{name='ca.weblite:java-objc-bridge:1.0.0', rules=[Rule{action=ALLOW, os=OSRestriction{name=OSX, version='null'}, features=null}], natives=null, extract=null, packed='null'}]},
remote=PartialVersion{id='Forge 1.15.1', time=Fri Dec 20 09:48:05 IST 2019, release=Mon Dec 16 15:59:47 IST 2019, type=modified, source=EXTRA_VERSION_REPO, skinVersion=false, list=net.minecraft.launcher.updater.ExtraVersionList@474f4267}, isInstalled=true, hasRemote=true, isUpToDate=true}
[Launcher] Java path: C:\Program Files\Java\jre1.8.0_231\bin\javaw.exe
[Launcher] Checking conditions...
[Launcher] Comparing assets...
[AssetsManager] Checking resources...
[AssetsManager] Reading indexes from file C:\Users\shind\AppData\Roaming\.minecraft\assets\indexes\1.15.json
[AssetsManager] Fast comparing: true
[Launcher] Delta time to compare assets: 227 ms.
[TLauncherManager] add required libraries: Forge 1.15.1
[VersionManager] Required for version Forge 1.15.1: []
[Modpack]  got container
[TLauncherManager] library will be replaced: com.mojang:authlib:1.5.25
[TLauncherManager] library will be replaced: com.mojang:patchy:1.1
[Launcher] Unpacking natives...
[Launcher] Constructing process...
[Launcher] Constructing classpath...
[Launcher] Getting Minecraft arguments...
[Launcher] Full command (characters are not escaped):
C:\Program Files\Java\jre1.8.0_231\bin\javaw.exe -Djava.net.preferIPv4Stack=true -Dos.name=Windows 10 -Dos.version=10.0 -Xmn128M -Xmx6877M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Djava.library.path=C:\Users\shind\AppData\Roaming\.minecraft\versions\Forge 1.15.1\natives -Dminecraft.launcher.brand=minecraft-launcher -Dminecraft.launcher.version=2.0.1003 -cp C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forge\1.15.1-30.0.14\forge-1.15.1-30.0.14.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm\7.2\asm-7.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-commons\7.2\asm-commons-7.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\ow2\asm\asm-tree\7.2\asm-tree-7.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\cpw\mods\modlauncher\5.0.0-milestone.4\modlauncher-5.0.0-milestone.4.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\cpw\mods\grossjava9hacks\1.1.0\grossjava9hacks-1.1.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecraftforge\accesstransformers\2.0.0-milestone.1-shadowed\accesstransformers-2.0.0-milestone.1-shadowed.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecraftforge\eventbus\2.0.0-milestone.1-service\eventbus-2.0.0-milestone.1-service.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecraftforge\forgespi\2.0.0-milestone.1\forgespi-2.0.0-milestone.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecraftforge\coremods\2.0.0-milestone.1\coremods-2.0.0-milestone.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecraftforge\unsafe\0.2.0\unsafe-0.2.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\electronwill\night-config\core\3.6.2\core-3.6.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\electronwill\night-config\toml\3.6.2\toml-3.6.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\jline\jline\3.12.1\jline-3.12.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\maven\maven-artifact\3.6.0\maven-artifact-3.6.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\jodah\typetools\0.6.1\typetools-0.6.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.11.2\log4j-core-2.11.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\minecrell\terminalconsoleappender\1.2.0\terminalconsoleappender-1.2.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.4\jopt-simple-5.0.4.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\tlauncher\patchy\1.1\patchy-1.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\oshi-project\oshi-core\1.1\oshi-core-1.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\java\dev\jna\platform\3.4.0\platform-3.4.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\ibm\icu\icu4j-core-mojang\51.2\icu4j-core-mojang-51.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\mojang\javabridge\1.0.22\javabridge-1.0.22.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\5.0.3\jopt-simple-5.0.3.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\io\netty\netty-all\4.1.25.Final\netty-all-4.1.25.Final.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\google\guava\guava\21.0\guava-21.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-lang3\3.5\commons-lang3-3.5.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\commons-io\commons-io\2.5\commons-io-2.5.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\java\jinput\jinput\2.0.5\jinput-2.0.5.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\net\java\jutils\jutils\1.0.0\jutils-1.0.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\mojang\brigadier\1.0.17\brigadier-1.0.17.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\mojang\datafixerupper\2.0.24\datafixerupper-2.0.24.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\google\code\gson\gson\2.8.0\gson-2.8.0.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\tlauncher\authlib\1.6.25\authlib-1.6.25.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpclient\4.3.3\httpclient-4.3.3.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\commons-logging\commons-logging\1.1.3\commons-logging-1.1.3.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\httpcomponents\httpcore\4.3.2\httpcore-4.3.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\it\unimi\dsi\fastutil\8.2.1\fastutil-8.2.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-api\2.8.1\log4j-api-2.8.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\apache\logging\log4j\log4j-core\2.8.1\log4j-core-2.8.1.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl\3.2.2\lwjgl-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl-jemalloc\3.2.2\lwjgl-jemalloc-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl-openal\3.2.2\lwjgl-openal-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl-opengl\3.2.2\lwjgl-opengl-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl-glfw\3.2.2\lwjgl-glfw-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl-stb\3.2.2\lwjgl-stb-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\org\lwjgl\lwjgl-tinyfd\3.2.2\lwjgl-tinyfd-3.2.2.jar;C:\Users\shind\AppData\Roaming\.minecraft\libraries\com\mojang\text2speech\1.11.3\text2speech-1.11.3.jar;C:\Users\shind\AppData\Roaming\.minecraft\versions\Forge 1.15.1\Forge 1.15.1.jar -Dminecraft.applet.TargetDirectory=C:\Users\shind\AppData\Roaming\.minecraft -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M -Dfml.ignoreInvalidMinecraftCertificates=true -Dfml.ignorePatchDiscrepancies=true cpw.mods.modlauncher.Launcher --username Gameatro --version Forge 1.15.1 --gameDir C:\Users\shind\AppData\Roaming\.minecraft --assetsDir C:\Users\shind\AppData\Roaming\.minecraft\assets --assetIndex 1.15 --uuid d21b6b26028811e8a268002590a1379b --accessToken ff6ae31f-facf-46b6-ba11-618ca8d892bb --userType mojang --versionType modified --width 925 --height 530 --launchTarget fmlclient --fml.forgeVersion 30.0.14 --fml.mcVersion 1.15.1 --fml.forgeGroup net.minecraftforge --fml.mcpVersion 20191217.105819
[Launcher] Launching Minecraft...
I'm hiding!
[TLauncherManager] mods after C:\Users\shind\AppData\Roaming\.minecraft\mods\modid-1.0.jar C:\Users\shind\AppData\Roaming\.minecraft\mods\tlskincape_1.15_1.15.1-1.8.jar
[InnerMinecraftServersImpl]  search changers of the servers
read servers from servers.dat []
[InnerMinecraftServersImpl]  prepare inner servers
save servers to servers.dat
[Launcher] Starting Minecraft Forge 1.15.1...
[Launcher] Launching in: C:\Users\shind\AppData\Roaming\.minecraft
Starting garbage collector: 75 / 217 MB
Garbage collector completed: 41 / 217 MB
[Launcher] Processing post-launch actions. Assist launch: true
===============================================================================================
> 2020-01-19 07:32:35,293 main WARN Advanced terminal features are not available in this environment
> [32m[07:32:35] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Gameatro, --version, Forge 1.15.1, --gameDir, C:\Users\shind\AppData\Roaming\.minecraft, --assetsDir, C:\Users\shind\AppData\Roaming\.minecraft\assets, --assetIndex, 1.15, --uuid, d21b6b26028811e8a268002590a1379b, --accessToken, ????????, --userType, mojang, --versionType, modified, --width, 925, --height, 530, --launchTarget, fmlclient, --fml.forgeVersion, 30.0.14, --fml.mcVersion, 1.15.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20191217.105819]
> [m[32m[07:32:35] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 5.0.0-milestone.4+67+b1a340b starting: java version 1.8.0_231 by Oracle Corporation
> [m[32m[07:32:36] [main/INFO] [ne.mi.fm.lo.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
> [m[32m[07:32:38] [main/INFO] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, Forge 1.15.1, --gameDir, C:\Users\shind\AppData\Roaming\.minecraft, --assetsDir, C:\Users\shind\AppData\Roaming\.minecraft\assets, --uuid, d21b6b26028811e8a268002590a1379b, --username, Gameatro, --assetIndex, 1.15, --accessToken, ????????, --userType, mojang, --versionType, modified, --width, 925, --height, 530]
> [mMethod func_110306_p hooked!
> Method func_110303_q hooked!
> Method func_175154_l hooked!
java.net.ConnectException: Connection timed out: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at net.minecraft.launcher.Http.performPost(Http.java:121)
at net.minecraft.launcher.Http.performPost(Http.java:139)
at org.tlauncher.util.statistics.StatisticsUtil.send(StatisticsUtil.java:40)
at org.tlauncher.util.statistics.StatisticsUtil.lambda$startSending$0(StatisticsUtil.java:29)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.tlauncher.util.async.RunnableThread.run(RunnableThread.java:15)
Thread called by: org.tlauncher.util.async.ExtendedThread$ExtendedThreadCaller
at org.tlauncher.util.async.ExtendedThread.<init>(ExtendedThread.java:17)
at org.tlauncher.util.async.ExtendedThread.<init>(ExtendedThread.java:21)
at org.tlauncher.util.async.RunnableThread.<init>(RunnableThread.java:7)
at org.tlauncher.util.async.AsyncThread$1.newThread(AsyncThread.java:12)
at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
at org.tlauncher.util.async.AsyncThread.execute(AsyncThread.java:17)
at org.tlauncher.util.statistics.StatisticsUtil.startSending(StatisticsUtil.java:27)
at org.tlauncher.tlauncher.rmo.TLauncher.main(TLauncher.java:282)

> [32m[07:32:44] [Render thread/INFO] [minecraft/Minecraft]: Setting user: Gameatro
java.net.ConnectException: Connection timed out: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at net.minecraft.launcher.Http.performPost(Http.java:121)
at net.minecraft.launcher.Http.performPost(Http.java:139)
at org.tlauncher.util.statistics.StatisticsUtil.send(StatisticsUtil.java:40)
at org.tlauncher.util.statistics.StatisticsUtil.lambda$startSending$0(StatisticsUtil.java:29)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.tlauncher.util.async.RunnableThread.run(RunnableThread.java:15)
Thread called by: org.tlauncher.util.async.ExtendedThread$ExtendedThreadCaller
at org.tlauncher.util.async.ExtendedThread.<init>(ExtendedThread.java:17)
at org.tlauncher.util.async.ExtendedThread.<init>(ExtendedThread.java:21)
at org.tlauncher.util.async.RunnableThread.<init>(RunnableThread.java:7)
at org.tlauncher.util.async.AsyncThread$1.newThread(AsyncThread.java:12)
at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.addWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.execute(Unknown Source)
at org.tlauncher.util.async.AsyncThread.execute(AsyncThread.java:17)
at org.tlauncher.tlauncher.managers.popup.menu.HotServerManager.onVersionsRefreshed(HotServerManager.java:249)
at org.tlauncher.tlauncher.managers.VersionManager.refresh(VersionManager.java:144)
at org.tlauncher.tlauncher.managers.VersionManager.startRefresh(VersionManager.java:156)
at org.tlauncher.tlauncher.managers.VersionManager.lambda$asyncRefresh$0(VersionManager.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.tlauncher.util.async.RunnableThread.run(RunnableThread.java:15)

> [m[32m[07:33:06] [Render thread/INFO] [minecraft/Minecraft]: Backend library: LWJGL version 3.2.2 build 10
> [m[32m[07:33:10] [modloading-worker-3/INFO] [ne.mi.co.ForgeMod/FORGEMOD]: Forge mod loading, version 30.0.14, for MC 1.15.1 with MCP 20191217.105819
> [m[32m[07:33:10] [modloading-worker-3/INFO] [ne.mi.co.MinecraftForge/FORGE]: MinecraftForge v30.0.14 Initialized
> [m[32m[07:33:11] [Render thread/INFO] [co.ex.ex.ExampleMod/]: HELLO from Register Block
> [m[32m[07:33:17] [Render thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
> [m[32m[07:33:17] [Render thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Mod Resources, Default
> [m[1;31m[07:33:37] [Thread-1/FATAL] [ne.mi.co.ForgeConfig/CORE]: Forge config just got changed on the file system!
> [m[32m[07:33:38] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
> [m[32m[07:33:40] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [forge] Found status: BETA_OUTDATED Current: 30.0.14 Target: 30.0.41
> [m[32m[07:33:40] [Forge Version Check/INFO] [ne.mi.fm.VersionChecker/]: [fm] Starting version check at http://myurl.me/
> [m[33m[07:33:41] [Forge Version Check/WARN] [ne.mi.fm.VersionChecker/]: Failed to process update information
> java.io.IOException: Server returned HTTP response code: 403 for URL: http://myurl.me/
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_231] {}
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_231] {}
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_231] {}
> 	at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_231] {}
> 	at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) ~[?:1.8.0_231] {}
> 	at sun.net.www.protocol.http.HttpURLConnection$10.run(Unknown Source) ~[?:1.8.0_231] {}
> 	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_231] {}
> 	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) ~[?:1.8.0_231] {}
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:1.8.0_231] {}
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.8.0_231] {}
> 	at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:189) ~[?:?] {re:classloading}
> 	at net.minecraftforge.fml.VersionChecker$1.process(VersionChecker.java:206) ~[?:?] {re:classloading}
> 	at java.lang.Iterable.forEach(Unknown Source) [?:1.8.0_231] {}
> 	at net.minecraftforge.fml.VersionChecker$1.run(VersionChecker.java:157) [?:?] {re:classloading}
> Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://myurl.me/
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source) ~[?:1.8.0_231] {}
> 	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) ~[?:1.8.0_231] {}
> 	at java.net.HttpURLConnection.getResponseCode(Unknown Source) ~[?:1.8.0_231] {}
> 	at net.minecraftforge.fml.VersionChecker$1.openUrlStream(VersionChecker.java:173) ~[?:?] {re:classloading}
> 	... 3 more
> [m[1;31m[07:33:44] [Server-Worker-1/ERROR] [minecraft/AtlasTexture]: Using missing texture, unable to load fm:textures/item/example_item.png : java.io.FileNotFoundException: fm:textures/item/example_item.png
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/SoundSystem]: OpenAL initialized.
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/SoundEngine]: Sound engine started
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 128x128x4 minecraft:textures/atlas/signs.png-atlas
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas
> [m[32m[07:33:47] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas
> [m[32m[07:33:48] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas
> [m[32m[07:33:48] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
> [m[32m[07:33:48] [Render thread/INFO] [minecraft/AtlasTexture]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas

This is the entire log

Link to comment
Share on other sites

FIrst off, the file contents you gave for your model file for example_item.json look like a localization file. For regular rendering of an item, your src\main\resources\assets\fm\models\item\example_item.json would look something like this:

 

{
  "parent": "item/generated",
  "textures": {
    "layer0": "modid:item/example_item"
  }
}

 

That "modid:item/example_item" is a resource location for the texture that will be used to draw layer0, which is the only layer in this case. Essentially, the "modid:item/example_item" refers to the texture for your item. With the way that resource locations work, your actual texture for the item should be located at src\main\resources\assets\fm\textures\item\example_item.png, rather than in the models folder.

 

Also, I think you'll want to put that localization information in the file: src\main\resources\assets\fm\lang\en_us.json

 

Edit: I feel like I should explain more.

The "resources\assets\modid\models" folder contains files that describe the way an object in the game should look. Unless you're using more complicated rendering techniques, these files are in the form of .json files (which is part of a system that resulted from the changes made in 1.8). These models make references to the textures that will be used to draw items/blocks. The textures themselves (.png images) will be searched for in the "resources\assets\modid\textures" folder.

 

You can find more information on models in the Forge Docs.

Edited by AnZaNaMa

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

48 minutes ago, AnZaNaMa said:

FIrst off, the file contents you gave for your model file for example_item.json look like a localization file. For regular rendering of an item, your src\main\resources\assets\fm\models\item\example_item.json would look something like this:

 


{
  "parent": "item/generated",
  "textures": {
    "layer0": "modid:item/example_item"
  }
}

 

That "modid:item/example_item" is a resource location for the texture that will be used to draw layer0, which is the only layer in this case. Essentially, the "modid:item/example_item" refers to the texture for your item. With the way that resource locations work, your actual texture for the item should be located at src\main\resources\assets\fm\textures\item\example_item.png, rather than in the models folder.

 

Also, I think you'll want to put that localization information in the file: src\main\resources\assets\fm\lang\en_us.json

 

Edit: I feel like I should explain more.

The "resources\assets\modid\models" folder contains files that describe the way an object in the game should look. Unless you're using more complicated rendering techniques, these files are in the form of .json files (which is part of a system that resulted from the changes made in 1.8). These models make references to the textures that will be used to draw items/blocks. The textures themselves (.png images) will be searched for in the "resources\assets\modid\textures" folder.

 

You can find more information on models in the Forge Docs.

So, I should put my example_item.json in the models folder and the .png file in the textures folder, right?

Link to comment
Share on other sites

7 minutes ago, Gameatro said:

So, I should put my example_item.json in the models folder and the .png file in the textures folder, right?

Correct

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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