Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mitchellbrine

Forge Modder
  • 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. 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.
  15. NO! DO NOT USE @SideOnly! Use if (world.isRemote) { // Do things! }
  16. 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).
  17. player.getUniqueID() is not what you think it is. Use player.getGameProfile().getId(); That will always stay the same.
  18. 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.
  19. 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.
  20. World.getBlock much?
  21. I'd make the player's motionY 0.0 when the block below him is water.
  22. 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?
  23. Learn Java. Learn how to cast. Then, it won't be an issue.
  24. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.