Jump to content

Mitchellbrine

Forge Modder
  • Posts

    193
  • Joined

  • Last visited

Everything posted by Mitchellbrine

  1. .setHeight(new BiomeGenBase.Height(*root height*, *variation*)); (Next time, I suggest taking a look in Minecraft's code before asking on here) EDIT: I derped. That's correct now.
  2. And a point to 1.8! 1.8: 1 1.7.10: Integer.MAX_VALUE jk, but that's pretty convenient in 1.8.
  3. You're opening on Client and Server. Open on Server-only.
  4. You don't have to iterate through the list and add a recipe for each one. That's a bad idea. Try iterating through the list and instead of checking if the item matches, check that it is in an ore dictionary entry.
  5. bindTexture now requires a ResourceLocation. Unless you are using an older version, which if that's the case: UPDATE
  6. Make sure you put in a block name before the texture. Use setBlockName(*name*); though if you are using on of the newer versions of Forge, use: setUnlocalizedName(*name*);
  7. That's a bit of a lie. When you set the topBlock, there is also a field you can set to set the topBlock's metadata. I don't know it off the top of my head (it's a field_ field) but I know it is there.
  8. You're not supplying it with the correct arguments. That's why it's "not applicable for the arguments".
  9. I would suggest using the nice method already given to you. Use ChatComponentTranslation (or ChatComponentText) and add in the ChatStyle set the color to lime. (I'm not going to give you any code because I want you to learn)
  10. You could always add those items to the ore dictionary. I don't believe there is a RULE for it, but if you can make your mod add in all the wrenches into the ore dictionary. Am I getting the right idea with what I'm saying?
  11. What is your harvest level? Show me code for you setting the harvest level.
  12. Someone please move this to Tutorials or somewhere where it needs to be!
  13. Make the gamemode, check if the player is in the dimension and if so, check if their game mode is not the certain dimension, and if so, change their gamemode!
  14. Um... learn Java...
  15. Try using getRenderBlockPass. Taking a look at what glass does (which I highly recommend doing before asking us), I see that that would most likely be what would help.
  16. NO! DO NOT USE @SideOnly! Use if (world.isRemote) { // Do things! }
  17. Right, toString()! Forgot about that. What he said is correct, Bektor. Do not use getUniqueID() or getPersistentID() because they are per session (or world, I can't figure it out either).
  18. player.getUniqueID() is not what you think it is. Use player.getGameProfile().getId(); That will always stay the same.
  19. How about store the UUID and player name when the ownership is given and at some point check to see if the UUID is the same, but username isn't. If the two names are different and UUIDs are the same, then change the name then. And the addInformation is good for this stuff. Just make sure the NBT exists in the ItemStack.
  20. I'd check if the player doesn't have permission, and if so, search through the inventory on crafting to see if he has the item and remove it and give back the recipe ingredients. That would be a way of doing it.
  21. World.getBlock much?
  22. I'd make the player's motionY 0.0 when the block below him is water.
  23. Then it's not being called. (I'd also make it: (int)Math.floor(entity.posX) to avoid rounding issues) Is the method being called at all?
  24. Learn Java. Learn how to cast. Then, it won't be an issue.
  25. You are checking for a block at the chunk coord, not the player's coord. Check at the player's coord. - - - Also, don't close your thread if you think you've figured it out. Keep it there so people can learn from it.
×
×
  • Create New...

Important Information

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