Everything posted by ImaFool
-
itemStack.setStackDisplayName not working
itemStack.setStackDisplayName(name); itemStack.setTagCompound(nbt); I gotta get to bed
-
itemStack.setStackDisplayName not working
my god im dumb, forget bout this post
-
itemStack.setStackDisplayName not working
itemStack.setStackDisplayName("custom name"); System.out.println(itemStack.getDisplayName()); System.out.println(this.worldObj.isRemote); that's gonna print "custom name" and "false" in the console but its showing up the usual itemstack name in minecraft instead of "custom name" What am i doing wrong?
-
Animation speed
Hey ho, no modding question, actually not even a java question In my TESR i have an animation i want to start fast and end slowly, depending on a linear value, so basically i need the cosinus sinus stuff.. and well I suck at math :'(, haaaaaaalp me
-
Techne Rendering problem
Hello, I have a techne block for my TESR with some transparent pixels on the texture, so you can look inside it, kind of like that: ____________ | | | | | | | | |___________| But when you look inside the block, the textures are not visible anymore, so basically they are rendered on 1 side only Can i change it so they are still renderd?
-
Maximum size for packets
Is there a maximum size for packets? (if yes how big?)
-
Play a sound without the json registration thingy
kk
-
Play a sound without the json registration thingy
Ok i managed to play an .ogg file, Is there a way to play sound in another format like mp3?
-
Play a sound without the json registration thingy
I have a block that should be able to play music from the hdd :3
-
Play a sound without the json registration thingy
Hey ho, Is there a way to play a sound that only exists at runtime? E.g. world.playAuxSFX works with the sound.json file, can I get around that?
-
Can't get textures to work in 1.8
Oh wow im so dumb
-
Can't get textures to work in 1.8
Well thanks anyway, i try update forge or sth..
-
Can't get textures to work in 1.8
- Can't get textures to work in 1.8
{ "parent": "builtin/generated", "textures": { "layer0": "test:items/test" }, "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 ] } } }- Can't get textures to work in 1.8
public static Item item; @EventHandler public void preInit(FMLInitializationEvent event) { item = new CItem().setUnlocalizedName("test").setCreativeTab(CreativeTabs.tabBlock); GameRegistry.registerItem(item, "test"); } @EventHandler public void init(FMLInitializationEvent event) { if(event.getSide() == Side.CLIENT) Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("test:test")); } still not working- Can't get textures to work in 1.8
public static Item item; @EventHandler public void preInit(FMLInitializationEvent event) { item = new CItem().setUnlocalizedName("test").setCreativeTab(CreativeTabs.tabBlock); GameRegistry.registerItem(item, "test"); if(event.getSide() == Side.CLIENT) Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("test:test")); }- Can't get textures to work in 1.8
like, initialize em? I tried that but still doesnt work- Can't get textures to work in 1.8
mod class: package com.example.test; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.ItemMeshDefinition; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; 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 net.minecraftforge.fml.relauncher.Side; @Mod(modid = Test.MODID, version = Test.VERSION, name = "Test") public class Test { public static final String MODID = "test"; public static final String VERSION = "1.0"; public static Item item = new CItem().setUnlocalizedName("test").setCreativeTab(CreativeTabs.tabBlock); @EventHandler public void preInit(FMLInitializationEvent event) { GameRegistry.registerItem(item, "test"); if(event.getSide() == Side.CLIENT) Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("test:test")); } } block class: package com.example.test; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.Item; public class CItem extends Item { } error log: [10:08:08] [Client thread/INFO]: Setting user: Player609 [10:08:09] [Client thread/INFO]: LWJGL Version: 2.9.1 [10:08:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Test [10:08:14] [sound Library Loader/INFO]: Starting up SoundSystem... [10:08:15] [Thread-9/INFO]: Initializing LWJGL OpenAL [10:08:15] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [10:08:15] [Thread-9/INFO]: OpenAL initialized. [10:08:15] [sound Library Loader/INFO]: Sound engine started [10:08:27] [Client thread/INFO]: Created: 512x512 textures-atlas [10:08:28] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Test [10:08:28] [Client thread/INFO]: SoundSystem shutting down... [10:08:28] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [10:08:28] [sound Library Loader/INFO]: Starting up SoundSystem... [10:08:28] [Thread-11/INFO]: Initializing LWJGL OpenAL [10:08:28] [Thread-11/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [10:08:28] [Thread-11/INFO]: OpenAL initialized. [10:08:29] [sound Library Loader/INFO]: Sound engine started [10:08:29] [Client thread/INFO]: Created: 512x512 textures-atlas [10:08:36] [server thread/INFO]: Starting integrated minecraft server version 1.8 [10:08:36] [server thread/INFO]: Generating keypair [10:08:36] [server thread/INFO]: Preparing start region for level 0 [10:08:38] [server thread/INFO]: Changing view distance to 12, from 10 [10:08:39] [server thread/INFO]: Player609[local:E:46eb84ee] logged in with entity id 183 at (30.842808827334615, 71.0, 102.94366312468108) [10:08:39] [server thread/INFO]: Player609 joined the game [10:08:40] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@4feb7abb[id=1178851a-8246-318e-85f8-1ae4517330a2,name=Player609,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:158) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:53) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:50) [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:148) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_20] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_20] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_20] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_20] at java.lang.Thread.run(Unknown Source) [?:1.8.0_20] [10:12:14] [server thread/INFO]: Saving and pausing game... [10:12:14] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [10:12:15] [server thread/INFO]: Saving chunks for level 'New World'/Nether [10:12:15] [server thread/INFO]: Saving chunks for level 'New World'/The End [10:18:53] [Client thread/INFO]: Stopping! [10:18:53] [Client thread/INFO]: SoundSystem shutting down... [10:18:53] [server thread/INFO]: Stopping server [10:18:53] [server thread/INFO]: Saving players [10:18:53] [server thread/INFO]: Saving worlds [10:18:53] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [10:18:53] [server thread/INFO]: Saving chunks for level 'New World'/Nether [10:18:53] [server thread/INFO]: Saving chunks for level 'New World'/The End [10:18:53] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com . [10:18:47] [sound Library Loader/INFO]: Sound engine started [10:18:49] [Client thread/INFO]: Created: 512x512 textures-atlas [10:18:49] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Test [10:18:49] [Client thread/INFO]: SoundSystem shutting down... [10:18:50] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [10:18:50] [sound Library Loader/INFO]: Starting up SoundSystem... [10:18:50] [Thread-10/INFO]: Initializing LWJGL OpenAL [10:18:50] [Thread-10/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [10:18:50] [Thread-10/INFO]: OpenAL initialized. [10:18:50] [sound Library Loader/INFO]: Sound engine started [10:18:51] [Client thread/INFO]: Created: 512x512 textures-atlas [10:18:58] [Client thread/INFO]: Stopping! [10:18:58] [Client thread/INFO]: SoundSystem shutting down... [10:18:58] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com I dont see an error related to the item.. What am I doing wrong?- Weird vanilla code
Hey guys, I found this piece of code in the BlockTorch class: public int getMetaFromState(IBlockState state) { byte b0 = 0; int i; switch (BlockTorch.SwitchEnumFacing.FACING_LOOKUP[((EnumFacing)state.getValue(FACING)).ordinal()]) { case 1: i = b0 | 1; break; case 2: i = b0 | 2; break; case 3: i = b0 | 3; break; case 4: i = b0 | 4; break; case 5: case 6: default: i = b0 | 5; } return i; } Wouldn't this do the exact same thing as: public int getMetaFromState(IBlockState state) { return BlockTorch.SwitchEnumFacing.FACING_LOOKUP[((EnumFacing)state.getValue(FACING)).ordinal()] } ? Then why is this so big?- effect the renderer
There are that supersecret settings from vanilla, can i use the shaders from that without the: Minecraft.getMinecraft().entityRenderer.activateNextShader(); ? So the player cant just turn em off again? Are there any good tutorials for shaders?- effect the renderer
Hello, how can i creat an effect similar to the confusion when u eat a puffer fish in 1.8 So i only want to change how the picture that is renderd for the screen and not anything in game Thanks in advance- Lag Problem - Seeking Clever Solutions
I dont really know bout COG, but cant you just set the generation weight up? and isnt vanilla stuff like ravines generating before mods anyway- Lag Problem - Seeking Clever Solutions
Ok, mby check in the onBlockPlaced method of your super dangerous block for fire sources around aaaaaaand remove them? Did you bother reading the whole thing ImaFool? Uhhm maybe i missunderstood a little- Lag Problem - Seeking Clever Solutions
Uhm, maybe make a copie BlockB of your BlockA BlockB is not flammable and the block that spawns, when you collect BlockB it drops BlockA taddaaaa- Special ResourceLocation
Yey got it to work. Thanks - Can't get textures to work in 1.8
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.