Everything posted by Kander16
-
[1.7.10] Custom rendered block
Omg, there was nothing wrong with the code at all... I just needed to change my block texture.
-
[1.7.10] Custom rendered block
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!
-
[1.8.0] How to allow EXISTING in game items to be used as fuels
This is a tutorial for minecraft version 1.7.10: If you have all this, you can just add diamonds to the list instead of the 'tree pitch' he's using. if (fuel.getItem() == Items.diamond) { return 5000; }
-
[1.7.10] Custom rendered blocks
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
-
[1.7.10/1.8/1.8.9/1.9.4/1.10.X] Master Chef Mod ~ More than just food!
Update 5.1! http://forum.minetronic.be/viewtopic.php?f=9&t=263
-
[1.8] Custom armor model
Hi, How do I create a custom armor model ? I've searched for it withouth success. Thanks.
-
[1.8] Ticking memory connection
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
Oh I see. It's working now. Thanks.
-
[1.8] Creating an link to a url with addChatMessage
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.
-
[1.8] Armor that looks like a skin
Ok. Do you know where the armor is rendered? (In what class?)?
-
[1.8] Armor that looks like a skin
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.
-
[1.7.10/1.8/1.8.9/1.9.4/1.10.X] Master Chef Mod ~ More than just food!
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
-
[1.7.10/1.8/1.8.9/1.9.4/1.10.X] Master Chef Mod ~ More than just food!
5.0 Is released! Update log (bug fixes): http://forum.minetronic.be/viewtopic.php?f=9&t=32&p=34#p34
-
[1.8] How to get the salmon item?
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.
-
[1.7.10/1.8/1.8.9/1.9.4/1.10.X] Master Chef Mod ~ More than just food!
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
Yeah... that could be the problem ;-)
-
[1.8] [Simple] I do not find brown mushrooms as item in code
Hi, I've a little problem finding a brown mushroom in the vanilla minecraft code. I've looked all over the items class, but I can't find any. I've tried: - Items.brown_mushroom - Items.mushroom But that does not exist. Thanks for helping.
-
[1.8] Problem with getActualState
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?
-
[1.8] Problem with getActualState
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
-
[1.8] Under water blocks
Can you explain a bit more what you mean?
-
[1.8] Under water blocks
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?
Ok.
-
[1.8] Is there a way to replace a specific block in a specific biome?
Hi, I want to replace all 'leaves' blocks into 'blossom_leaves' withing specific biomes. So that it checks what blocks in the 'forest' biome is leaves, then replace the leaves into another block. Is there a way to do this? Thanks.
-
[1.8] How to set the world to snow instead of raining?
Unfortunate. So this is very difficult work to do, and there's no other way?
-
[1.8] How to set the world to snow instead of raining?
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.
IPS spam blocked by CleanTalk.