-
Posts
13 -
Joined
-
Last visited
Everything posted by Trhod177
-
RenderSystem.setShaderColor(1.0f, 1.0f, 1.0f, 1.0f); and RenderSystem.setShaderTexture(0, Texture); and to register MenuScreens.register(containerRegistrationClass.container.get(), screenclass::new); also mojang dont name they variables that why its a byproduct of obfuscation i would recommend you use parchment mappings to give them all names https://github.com/ParchmentMC/Librarian/blob/dev/docs/FORGEGRADLE.md https://parchmentmc.org https://discord.parchmentmc.org/
-
you need to use RenderSystem.setShaderColor and RenderSystem.setShaderTexture
-
Im currently developing a mod and when i try to join a server it shows this error on the client Internal Exception: io.netty.handler.codec.DecoderException: io.netty.handler,codec.Encoder.Exception: java.io.UTFDataFormatException: malformed input around byte 4 Log Files: Client Debug Log (Gist) Client Latest Log (Gist) Server Debug Log (Gist) Server Latest Log (Gist) Source: Geomancy Source Code Github From the googling i have done, The few people i could find who had similar issues, there issues seem to have been fixed by making sure fromNetwork and toNetwork methods in custom recipes are identical. I have checked my recipes and as far as i can see there are no issues with either and they send and receive the same issue. Recipe classes: DippingRecipe.java github InfusingRecipe.java github And if someone could perhaps help my figure out what i did wrong with the tank in my blockentity it would also be appreciated. BlockEntity Class: DipperBlockEntity.java github
-
I want to make it so the different tools give different drops and i saw other people saying to do it this way.
-
Woops i dont know why that happened but the link is corrected Link
-
I am trying to change what items are dropped by certain blocks when i tested it, it crashed with an error about a ticking entity. CrashLog My EventHandlerClass(link updated)if necessary
-
[1.12.2] How do i stop my block from dropping itself [Solved]
Trhod177 replied to Trhod177's topic in Modder Support
Thanks that fix it.. -
Ok then how do distinguish between sand and redsand
-
what do you mean by
-
I've been trying to change the onHarvestBlock event to change what sand and red sand drops when you mine it, normal sand works fine but i cant get red sand to drop the proper item. Here is my code @Mod.EventBusSubscriber public class PocketSandEventHandler { @SubscribeEvent public void onHarvestBlock(BlockEvent.HarvestDropsEvent event) { final EntityPlayer PLAYER = event.getHarvester(); if(null == PLAYER || null == PLAYER.getHeldItemMainhand()) return; if(ConfigHandler.overridesanddrops == true) { if(event.getState().getBlock() == Blocks.SAND) { event.getDrops().add(new ItemStack(ItemInit.sandpile, 4)); event.getDrops().remove(0); } } if(ConfigHandler.overrideredsanddrops == true) { if(event.getState().getBlock() == Blocks.SAND.getStateFromMeta(1)) { event.getDrops().add(new ItemStack(ItemInit.redsandpile, 4)); event.getDrops().remove(1); } } } }