Jump to content

Scoptile

Members
  • Posts

    21
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Personal Text
    What are you looking at?

Scoptile's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I probably did something wrong with my GUI, because whenever I resize my game window it draws the text of a label after I change it over the previous text...If that makes sense. Here's an example: Can someone please help? Thanks. GUI Code:
  2. Nevermind, I got it. EntityPlayer.setItemStackToSlot(EntityEquipmentSlot.OFFHAND, ItemStack);
  3. This is a really dumb question, but how to I set the item in the player's offhand? Thanks.
  4. okay i got it thanks (it's net.minecraft.world.biome.BiomeDecorator btw)
  5. I just want to know where in the Minecraft code ore generation is defined. Thanks.
  6. I got it working. My problem was that I wasn't setting the registry name for the block. Thanks for the help.
  7. I'm having trouble understanding exactly what I need to do... Please forgive me.
  8. Okay, I managed to not make it crash by changing my registerRender method to this: public static void registerRender (Block block, String name) { ItemModelMesher mesher = Minecraft.getMinecraft().getRenderItem().getItemModelMesher(); mesher.register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(Reference.MOD_ID + ":" + name, "inventory")); } However, when I run the game the block doesn't appear as if it wasn't registered.
  9. You mentioned registering an ItemBlock, and I noticed that both Item and ItemBlock had the method getItemFromBlock, so I tried using ItemBlock instead of Item. It clearly didn't work.
  10. I tried changing my registerRender method to this, but I'm pretty sure I'm still doing something wrong public static void registerRender (Block block, String resloc) { Item item = ItemBlock.getItemFromBlock(block); ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + resloc, "inventory")); }
  11. I am starting to experiment with modding for 1.9.4, and I figured out how to register items, but I'm having more trouble with blocks. The game crashes when the method, 'RegisterRenders' from my block init class is called by my client proxy class. I can't figure out what I'm doing wrong, so can someone please help me? Thanks in advance. Crash Report: Block init class: TestBlock (BlockTm) class: ClientProxy class: Mod class: Tell me if you need any more details.
  12. What would I put for the AxisAligned bb argument? I feel like an idiot for asking, but I've hardly ever worked with entities before.
  13. I want to figure out how to make a block check for a specific item, dropped on top of it. I tried looking at the hopper code, but I still couldn't figure it out. Could someone please help me? Thanks in advance.
×
×
  • Create New...

Important Information

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