-
Posts
403 -
Joined
-
Last visited
Everything posted by Kander16
-
Omg, there was nothing wrong with the code at all... I just needed to change my block texture.
-
Hi, I've created a custom rendered block (the milk barrel). It doesn't look good. I used the ISimpleBlockRenderingHandler to render my block. Here is the code: - MilkBarrel.java: http://pastebin.com/4dcJNwrX - MilkBarrelRenderer.java: http://pastebin.com/t0Q0Vdhh - ClientProxy.java: http://pastebin.com/RLwibK0t - Chef.java(Base mod class): http://pastebin.com/08hgpb8b My block looks like this when I: - use renderer.renderStandardBlock(in MilkBarrelRenderer.java, line 36): http://www.minetronic.com/2015-12-24_17.42.58.png - don't use renderer.renderStandardBlock(in MilkBarrelRenderer.java, line 36): http://www.minetronic.com/2015-12-24_17.52.30.png Why is this happening? (By the way, I copied the code inside the renderBlockCauldron method in the RenderBlocks class to use as base) Thanks!
-
Hi, I'm trying to create custom rendered blocks. But I don't get this. Everyone says that you need to make a model class, but why doesn't the cauldron have got this. I only see "renderBlockCauldron" in the "RenderBlocks" class, but no "ModelBlockCauldron" or something like this. Can someone explain this? By the way, I'm also trying to create a milk barrel which should have the same rendering as a cauldron. Thanks, Kander18
-
Update 5.1! http://forum.minetronic.be/viewtopic.php?f=9&t=263
-
Hi, How do I create a custom armor model ? I've searched for it withouth success. Thanks.
-
Hi, Does anyone know what this error message means? I get this error when I try to close a network input stream: java.lang.NullPointerException: Ticking memory connection at com.chef.mod.JavaGetUrl.main(JavaGetUrl.java:115)[/Code] Java class file: http://pastebin.com/p2PQs6jJ. Based on this example: http://alvinalexander.com/java/edu/pj/pj010011 Thanks. Kander18
-
[1.8] Creating an link to a url with addChatMessage
Kander16 replied to Kander16's topic in Modder Support
Oh I see. It's working now. Thanks. -
Hi, I'm trying to create a message when a player joins the world, which says where you can download the latest version. So, I've set a link where you can download the latest version from. But for some reason, if I click the link, nothing happens. So I was trying some things to get it to work. This is what I tried: ClickEvent openUrl = new ClickEvent(Action.OPEN_URL, "http://minetronic.com/masterchef_downloads.php"); player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "New version available! (V" + newVersion + ").")); player.addChatMessage(new ChatComponentText(EnumChatFormatting.GREEN + "Please update the master chef mod.")); player.addChatMessage((IChatComponent) new ChatComponentText(EnumChatFormatting.YELLOW + "http://minetronic.com/masterchef_downloads.php").getChatStyle().setChatClickEvent(openUrl));[/Code] Full class file: http://pastebin.com/itUxqYrR Thanks for helping.
-
Ok. Do you know where the armor is rendered? (In what class?)?
-
Hi, I am programming new clothes to put on. How is the armor rendered on your body. Because it needs to look like a skin, and not like iron armor. The clothes should be filed against the body, not of the body Thanks.
-
New MasterChef version! More bugs fixes! Master Chef version 5.0.2 for 1.8. Bug fixes: http://forum.minetronic.com/viewtopic.php?f=9&t=36&sid=d822df13d4c706003397c0da83c9892d
-
5.0 Is released! Update log (bug fixes): http://forum.minetronic.be/viewtopic.php?f=9&t=32&p=34#p34
-
Hi, I want to register a recipe that uses a salmon, but I can not get the salmon, you can only make it with cods This is the code I use: Item salmon = new ItemStack(Items.fish, 1, 1).getItem();[/Code] And this is the recipe: [Code]GameRegistry.addShapedRecipe(new ItemStack(MyItems.sushi), "X", "Y", 'X', salmon, 'Y', MyItems.sushi_cone);[/Code] Thanks.
-
Master Chef v5.0-Beta is released! Update log: http://forum.minetronic.be/viewtopic.php?f=9&t=31
-
[1.8] [Simple] I do not find brown mushrooms as item in code
Kander16 replied to Kander16's topic in Modder Support
Yeah... that could be the problem ;-) -
Hi, I have a hard time to understand what you're trying to explain. Do you know or have example code where this is used, so I can study it?
-
Hi, I've a block that needs to update the state based on the amount of ice. The blockstate.json file of this block needs more than 15 combinations (Facing & ice 1 -> 10). So I use getActualState(). But somehow, my int ice = ((Integer) state.getValue(ICE).intValue();[/Code] always prints the value of 10 (system.out.println() in getActualState() method). I don't know how this happen. Thanks. Block class: http://pastebin.com/xR9eNeLv
-
Can you explain a bit more what you mean?
-
Hi, I want to create a non-full block that has to be placed under water. If I use a custom rendered block (like fences), it will fill the remaining block space with air instead of water. Now I want the empty block space to be filled with water instead of air. Is this possible and how do I signal minecraft to fill the empty block space with water? If this isn't possible, what is the best way to mimic the effect of water in the block? Thanks.
-
[1.8] Is there a way to replace a specific block in a specific biome?
Kander16 replied to Kander16's topic in Modder Support
Ok. -
[1.8] How to set the world to snow instead of raining?
Kander16 replied to Kander16's topic in Modder Support
Unfortunate. So this is very difficult work to do, and there's no other way? -
Hi, I don't know how to set a non-snowy biome to a snowy biome instead of raining. I've tried http://pastebin.com/ELuW9XEu but that doesn't work. Any suggestions? Thanks.