Jump to content

Kander16

Members
  • Posts

    403
  • Joined

  • Last visited

Everything posted by Kander16

  1. Omg, there was nothing wrong with the code at all... I just needed to change my block texture.
  2. 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!
  3. 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; }
  4. 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
  5. Update 5.1! http://forum.minetronic.be/viewtopic.php?f=9&t=263
  6. Hi, How do I create a custom armor model ? I've searched for it withouth success. Thanks.
  7. 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
  8. Oh I see. It's working now. Thanks.
  9. 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.
  10. Ok. Do you know where the armor is rendered? (In what class?)?
  11. 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.
  12. 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
  13. 5.0 Is released! Update log (bug fixes): http://forum.minetronic.be/viewtopic.php?f=9&t=32&p=34#p34
  14. 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.
  15. Master Chef v5.0-Beta is released! Update log: http://forum.minetronic.be/viewtopic.php?f=9&t=31
  16. Yeah... that could be the problem ;-)
  17. 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.
  18. 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?
  19. 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
  20. Can you explain a bit more what you mean?
  21. 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.
  22. 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.
  23. Unfortunate. So this is very difficult work to do, and there's no other way?
  24. 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.
×
×
  • Create New...

Important Information

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