Jump to content

larsgerrits

Members
  • Posts

    3462
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by larsgerrits

  1. Look at this piece of code: int x = (chunkX*16)+RNG.nextInt(14); int z = (chunkX*16)+RNG.nextInt(14);
  2. Use CreativeTabs.getNextID() instead of 0 .
  3. There are plenty of events and hooks for entities. You can use them to modify an entity's behaviour.
  4. Override getBlockLayer() to return EnumWorldBlockLayer.CUTOUT .
  5. You probably want to use flag 3, which are flag 1 (block update) and flag 2 (notify clients).
  6. This topic has been moved to Support & Bug Reports. [iurl]http://www.minecraftforge.net/forum/index.php?topic=30240.0[/iurl]
  7. ExtraUtilities and BuildCraft are clashing. Make sure they are both up-to-date.
  8. You can safely cast that to a ChatComponentText and use ChatComponentText#getChatComponentText_TextValue() to get the display name.
  9. You use the alternative constructor. Edit: I just found out there's no alternative constructor, so you'd have to set the position manually using entity.posX/Y/Z = ?
  10. You can draw to ingame GUI using the RenderGameOverlayEvent.
  11. You do know Java, right? From the code you got from somebody (bad person, don't give code without explanation), you clearly don't know Java. If you do know it, you can solve the error yourself.
  12. When Minecraft detects even a slight change in the ItemStack the player is holding, like changing hotbar slot, or changing the ItemStack's NBT, it resets the break timer, and does that animation. I believe Tinkers' Construct fixes this by not changing the NBT when the tool is used.
  13. GlStateManager? Where? I don't have one... That's because he hasn't looked at the title and doesn't know you are working with MC 1.7.10, so he gave code for MC 1.8. Ok, i guess i can replace first 2 with GL11.glDisable(GL11.GL_LIGHTING); GL11.glEnable(GL11.GL_BLEND); But what is third one? Anyways it didn't help... Any more ideas??? The third one you can replace with GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); .
  14. If you have IFluidHandler implemented, it should work, as the pipes should do all the work. You just have to fill in all the methods.
  15. Use Block#getDefaultState() for standard blocks.
  16. ArrayList<ItemStack> drops = target.onSheared(itemstack, entity.worldObj, (int)entity.posX, (int)entity.posY, (int)entity.posZ, EnchantmentHelper.getEnchantmentLevel(Enchantment.fortune.effectId, itemstack)); Shears call IShearable#onSheared , and sheep implement that interface. So go to EntitySheep#onSheared and look how they figure out the color of the sheep.
  17. If you change the mappings, to what mappings did you change it and what is the compile error?
  18. http://www.minecraftforge.net/forum/index.php?topic=13154.0 This is the way the Colored Lights mod works, so you might be able to do it the same way his mod does, or use the mod's API.
  19. GlStateManager? Where? I don't have one... That's because he hasn't looked at the title and doesn't know you are working with MC 1.7.10, so he gave code for MC 1.8.
  20. Override isOpaqueCube() to return false.
  21. Yep, I deserved that. I meant to say desktop and laptop.
×
×
  • Create New...

Important Information

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