Skip 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.

Animefan8888

Forge Modder
  • Joined

  • Last visited

Everything posted by Animefan8888

  1. We can't help without actual information. Post your blockstate and your log that has the exception.
  2. This is not true, all Items are singletons(there is only one shears). You are comparing and ItemStack to an Item you need to call ItemStack#getItem on your getItemInMainHand
  3. Post updated json and path as well as the log.
  4. Change it back, that was my mistake as noted by me striking out the text.
  5. Your path is assets/openscripties/recipes not assets/openscriptie/recipes
  6. Is there an error in the log? Its most likely the ingredients being an array of objects instead of an array of strings.
  7. There is no reference to your recipe in the log, where is the json file located, and
  8. No, vanilla crafting recipes do not work in this manner.'=' What does the log say? Also did you even take a look at mcjty's tutorial? You're missing the key and pattern tag.
  9. Do still need help if so post the exception.
  10. This is probably because you can look at all the other lang files within your Minecraft jar or look in assets.forge.lang within your workspace. The problem you might be having is that you do not have a pack.mcmeta file, if you do not forge will switch to a legacy version that requires your english lang file to be called en_US.lang.
  11. When you open the inventory or the inventory is accessed the contents need to be synced, it is not necessarily an event handler you need to use. Note the container class should automatically sync its contents to the client from Container#detectAndSendChanges You very well could, but you shouldn't extend InventoryPlayer or any IInventory, instead just use an IItemHandler implementation. For future reference please read the javadoc above things before you use them.
  12. Which blocks? Also post what you have.
  13. And the crash for this code.
  14. Use the RenderGameOverlayEvent.Post
  15. No, there is not a simpler way to do this, though your overall code will look much simpler than forges dynamic bucket because you will only need to have one TextureAtlasSprite that applies the color to the texture. But I do agree with jabelar, it would be fine to just let the texture be generated every frame. And if it were to become a problem you could very easily switch over to the TextureAtlasSprite method.
  16. Raw code please, no one wants to download it.
  17. Does the server render things? Anything that has @SideOnly can only be referenced on that side. Then anything that doesn't make sense, such as the server registering models.
  18. Any methods you need to be called on either the Client or the server, IE on the client would be model registry(A method that calls ModelLoader.setCustomModelResourceLocation).
  19. it seems you need to use RenderGameOverlayEvent.Text to render text. So you may need both RenderGameOverlayEvent.Pre to cancel the item tooltips, and RenderGameOverlayEvent.Text to actually render.
  20. Take a look at GuiIngame#renderSelectedItem(ScaledResolution) lines 694-699
  21. Problematic Code #14
  22. Every Item has a registry name that is stored in its instance, since Items, Blocks, etc are singletons there is only one instance. The registry name is then mapped to the instance think Map<RegistryName, Item>.

Important Information

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

Account

Navigation

Search

Search

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.