Jump to content

Recommended Posts

Posted

Hello,

After finally getting a custom tool type to be properly registered, I loaded them up and I got a weird graphical bug:

 

Mx3WFoM.png

F2rFqD3.png

Ng6FeNs.png

sBDAFE8.png

ApLB1a7.png

FMBLhZV.png

fCe3L1o.png

g42WQXh.png

xAHLTl1.png

V4ApisY.png

SwxipKd.png

 

 

Here's the item register/render code:

 

package com.t10a.minedran.init;

import com.t10a.minedran.item.ItemWaraxe;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.common.util.EnumHelper;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ModItems 
{
// public static Item <unlocalized name>;

public static Item waraxe_wood;
public static Item waraxe_stone;
public static Item waraxe_iron;
public static Item waraxe_diamond;
public static Item waraxe_gold;
public static Item waraxe_tutorial;

public static void init() 
{
	//<unlocalized name>=new Item<name>();
	waraxe_wood=new ItemWaraxe(ToolMaterial.WOOD);
	waraxe_stone=new ItemWaraxe(ToolMaterial.STONE);
	waraxe_iron=new ItemWaraxe(ToolMaterial.IRON);
	waraxe_diamond=new ItemWaraxe(ToolMaterial.DIAMOND);
	waraxe_gold=new ItemWaraxe(ToolMaterial.GOLD);
}

public static void register()
{
	//GameRegistry.register(<unlocalized name>);
	//NOTICE: THIS IS VERY LIKELY TO CHANGE ONCE I FIGURE OUT HOW TO REGISTER STUFF PROPERLY
	GameRegistry.register(waraxe_wood);
	GameRegistry.register(waraxe_stone);
	GameRegistry.register(waraxe_iron);
	GameRegistry.register(waraxe_diamond);
	GameRegistry.register(waraxe_gold);
}
public static void registerRenders()
{
	//registerRender(<unlocalized name>);
	registerRender(waraxe_wood);
	registerRender(waraxe_stone);
	registerRender(waraxe_iron);
	registerRender(waraxe_diamond);
	registerRender(waraxe_gold);
}

private static void registerRender(Item item) 
{
                // I know, this is poor form. Once I figure out the right way, this will be fixed.
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(),"inventory"));
}
}

 

 

Here's a sample json item model:

 

{
    "parent": "item/handheld",
    "textures": {
        "layer0": "minedran:items/waraxe_wood"
    }
}

 

 

Also, the runtime log:

 

OpenJDK 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[18:41:05] [main/INFO] [GradleStart]: Extra: []
[18:41:05] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /home/thomas/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:41:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:41:05] [main/INFO] [FML]: Forge Mod Loader version 12.17.0.1976 for Minecraft 1.9.4 loading
[18:41:05] [main/INFO] [FML]: Java is OpenJDK 64-Bit Server VM, version 1.8.0_92, running on Linux:amd64:4.6.3-1-ARCH, installed at /usr/lib/jvm/java-8-openjdk/jre
[18:41:05] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:41:05] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[18:41:05] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:41:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:41:05] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:41:05] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:41:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:41:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:41:06] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:41:06] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:41:06] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:41:06] [Client thread/INFO]: Setting user: Player443
[18:41:08] [Client thread/INFO]: LWJGL Version: 2.9.4
[18:41:08] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ----
// Uh... Did I do that?

Time: 6/07/16 6:41 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.9.4
Operating System: Linux (amd64) version 4.6.3-1-ARCH
Java Version: 1.8.0_92, Oracle Corporation
Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 828241392 bytes (789 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'X.Org' Version: '3.0 Mesa 11.2.2' Renderer: 'Gallium 0.4 on AMD HAWAII (DRM 2.43.0, LLVM 3.8.0)'
[18:41:08] [Client thread/INFO] [FML]: MinecraftForge v12.17.0.1976 Initialized
[18:41:08] [Client thread/INFO] [FML]: Replaced 232 ore recipes
[18:41:09] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:41:09] [Client thread/INFO] [FML]: Searching /drv/Data/Content/Minecraft/Mods/1.9.4/minedran/run/mods for mods
[18:41:09] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[18:41:09] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, minedran] at CLIENT
[18:41:09] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, minedran] at SERVER
[18:41:10] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Minedran
[18:41:10] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:41:10] [Client thread/INFO] [FML]: Found 418 ObjectHolder annotations
[18:41:10] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:41:10] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:41:10] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:41:10] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[18:41:10] [Client thread/INFO] [sTDOUT]: [com.t10a.minedran.Minedran:preInit:27]: Pre Initialisation!
[18:41:10] [Client thread/INFO] [FML]: Applying holder lookups
[18:41:10] [Client thread/INFO] [FML]: Holder lookups applied
[18:41:10] [Client thread/INFO] [FML]: Injecting itemstacks
[18:41:10] [Client thread/INFO] [FML]: Itemstack injection complete
[18:41:10] [sound Library Loader/INFO]: Starting up SoundSystem...
[18:41:10] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: UP_TO_DATE Target: null
[18:41:10] [Thread-7/INFO]: Initializing LWJGL OpenAL
[18:41:10] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:41:10] [Thread-7/INFO]: OpenAL initialized.
[18:41:11] [sound Library Loader/INFO]: Sound engine started
[18:41:11] [Client thread/INFO] [FML]: Max texture size: 16384
[18:41:11] [Client thread/INFO]: Created: 16x16 textures-atlas
[18:41:12] [Client thread/INFO] [sTDOUT]: [com.t10a.minedran.Minedran:Init:35]: Initialisation!
[18:41:12] [Client thread/INFO] [FML]: Injecting itemstacks
[18:41:12] [Client thread/INFO] [FML]: Itemstack injection complete
[18:41:12] [Client thread/INFO] [sTDOUT]: [com.t10a.minedran.Minedran:postInit:42]: Post Initialisation!
[18:41:12] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[18:41:12] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Minedran
[18:41:13] [Client thread/INFO]: SoundSystem shutting down...
[18:41:13] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[18:41:13] [sound Library Loader/INFO]: Starting up SoundSystem...
[18:41:13] [Thread-9/INFO]: Initializing LWJGL OpenAL
[18:41:13] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:41:13] [Thread-9/INFO]: OpenAL initialized.
[18:41:13] [sound Library Loader/INFO]: Sound engine started
[18:41:13] [Client thread/INFO] [FML]: Max texture size: 16384
[18:41:13] [Client thread/INFO]: Created: 1024x512 textures-atlas
[18:41:15] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[18:41:17] [server thread/INFO]: Starting integrated minecraft server version 1.9.4
[18:41:17] [server thread/INFO]: Generating keypair
[18:41:17] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[18:41:17] [server thread/INFO] [FML]: Applying holder lookups
[18:41:17] [server thread/INFO] [FML]: Holder lookups applied
[18:41:17] [server thread/INFO] [FML]: Loading dimension 0 (Dev World) (net.minecraft.server.integrated.IntegratedServer@303a3134)
[18:41:17] [server thread/INFO] [FML]: Loading dimension 1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@303a3134)
[18:41:17] [server thread/INFO] [FML]: Loading dimension -1 (Dev World) (net.minecraft.server.integrated.IntegratedServer@303a3134)
[18:41:17] [server thread/INFO]: Preparing start region for level 0
[18:41:18] [server thread/INFO]: Changing view distance to 12, from 10
[18:41:19] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[18:41:19] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[18:41:19] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[18:41:19] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[18:41:19] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[18:41:19] [server thread/INFO]: Player443[local:E:cdb11415] logged in with entity id 129 at (1367.7107094959777, 4.0, -1697.401432725541)
[18:41:19] [server thread/INFO]: Player443 joined the game
[18:41:19] [server thread/INFO]: Saving and pausing game...
[18:41:19] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld
[18:41:19] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether
[18:41:19] [server thread/INFO]: Saving chunks for level 'Dev World'/The End
[18:41:19] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@7e1c3ad4[id=f2c8593c-da65-363a-88be-1cceb3b57c61,name=Player443,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3043) [Minecraft.class:?]
at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_92]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_92]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
[18:41:23] [server thread/INFO]: Saving and pausing game...
[18:41:23] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld
[18:41:23] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether
[18:41:23] [server thread/INFO]: Saving chunks for level 'Dev World'/The End
[18:41:26] [server thread/INFO]: Saving and pausing game...
[18:41:26] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld
[18:41:26] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether
[18:41:26] [server thread/INFO]: Saving chunks for level 'Dev World'/The End
[18:41:27] [server thread/INFO]: Stopping server
[18:41:27] [server thread/INFO]: Saving players
[18:41:27] [server thread/INFO]: Saving worlds
[18:41:27] [server thread/INFO]: Saving chunks for level 'Dev World'/Overworld
[18:41:27] [server thread/INFO]: Saving chunks for level 'Dev World'/Nether
[18:41:27] [server thread/INFO]: Saving chunks for level 'Dev World'/The End
[18:41:27] [server thread/INFO] [FML]: Unloading dimension 0
[18:41:27] [server thread/INFO] [FML]: Unloading dimension -1
[18:41:27] [server thread/INFO] [FML]: Unloading dimension 1
[18:41:27] [server thread/INFO] [FML]: Applying holder lookups
[18:41:27] [server thread/INFO] [FML]: Holder lookups applied
[18:41:28] [Client thread/INFO]: Stopping!
[18:41:28] [Client thread/INFO]: SoundSystem shutting down...
[18:41:28] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

 

Here's the github link, if you need more code: https://github.com/T10a/minedran

 

Thanks if you can help!

 

Edit: I did try to use the ModelLoader.setCustomModelResourceLocation code in the render, but it resulted in the model being a purple and black cube.

If I'm asking a whole bunch of questions, please don't get angry. I'm trying to learn.

Posted

I remember I once had such a bug with my items where there were like "holes" on the side. I went to the png texture, selected the transparent part, filled it then made it transparent again and this fixed the problem. It may be something related to Minecraft dealing with "alpha" part of the texture when rendering.

 

Not sure if this is the problem with you however.

Posted

That's the problem! I opened up the icons in GIMP and found a whole bunch of funky different alpha texture parts. Thanks!

If I'm asking a whole bunch of questions, please don't get angry. I'm trying to learn.

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Reach Out To Rapid Digital: What sapp Info: +1 41 4 80 7 14 85 Email INFO: rap iddi gita lrecov ery @ exe cs. com Hello, my name is Jayson, and I’m 35 years old from the United Kingdom. My family and I recently endured an incredibly challenging experience that I wouldn’t wish on anyone. We became victims of a cryptocurrency investment fraud scheme that saw us lose a staggering $807,000 in USDT and Bitcoins. The fraudsters had created a convincing facade, and we were lured into investing, only to discover later that the platform was a complete scam. We were left devastated, not just financially, but emotionally, as we had trusted these people and believed in the legitimacy of the investment. After the initial shock wore off, we desperately searched for ways to recover the lost funds. It seemed like an impossible task, and we felt as though there was no hope. That’s when, by sheer luck, we stumbled across a post about Rapid Digital Recovery, a cryptocurrency and funds recovery organization with a proven track record in cybersecurity and fraud recovery. We decided to reach out to them, and from the first interaction, we were impressed with their professionalism and transparency. They explained the recovery process in detail and reassured us that they had the skills and expertise to track down the perpetrators and recover our funds. This gave us a renewed sense of hope, something we hadn’t felt in months. What truly stood out during our experience with Rapid Digital Recovery was their dedication to the recovery process. The team went above and beyond, using sophisticated tracking tools and cyber forensics to gather critical information. Within a matter of weeks, they had successfully located the funds and traced the scam back to the fraudsters responsible. They worked with the authorities to ensure the criminals were held accountable for their actions. To our relief, the team at Rapid Digital Recovery was able to recover every single penny we had lost. The funds were returned in full, and the sense of closure we felt was invaluable. We couldn’t have imagined such a positive outcome in the early stages of our recovery journey, and we are deeply grateful for the work they did. If you ever find yourself in a similar situation, I highly recommend contacting Rapid Digital Recovery. Their expertise, transparency, and dedication to their clients make them the go-to choice for anyone seeking to recover lost cryptocurrency or funds. They truly gave us back our financial future.  
    • This is my first time modding anything, so maybe just skill issue. I'm using Forge 54.0.12 and Temurin 21.0.5+11-LTS I wanted to create a custom keybind and to check whether it works I'd like to send a chat message. I tried using Minecraft.getInstance().player.sendSystemMessage(Component.literal("test")); but IntelliJ couldnt resolve sendSystemMessage(...). Since I saw people using it in earlier versions, I tried the same thing with 1.20.6(- 50.1.0), where it works fine, now I can't figure out if this is intentional and whether there are other options for sending chat messages. On that note, is there more documentation than https://docs.minecraftforge.net/en/1.21.x/? It seems very incomplete compared to something like the Oracle Java docs
    • Hi, i'm having this error and I wanna fix it. we try: -Reload drivers -Eliminate .minecraft -Eliminate Java -Restart launcher -Verify if minecraft is using gpu -Mods  in .minecraft is empty -Install the latest and recomended version of forge idk what i have to do, help me pls. the lastest log is: https://mclo.gs/WAMao8x  
    • Read the FAQ, Rule #2. (https://forums.minecraftforge.net/topic/125488-rules-and-frequently-asked-questions-faq/)  
  • Topics

×
×
  • Create New...

Important Information

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