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.

Kokkie

Forge Modder
  • Joined

  • Last visited

Everything posted by Kokkie

  1. Show your model registration code and the models itself
  2. It means a field/method etc. is static. You need to call using the variable as a parameter.
  3. That's because it isn't static, try Minecraft.getMinecraft().ingameGUI.
  4. Try using Gui.drawTexturedModalRect(...).
  5. Sorry, didn't look well enough... And please don't talk about abusive... Sorry that was just.. Something...
  6. Also, you tried to make an import static, nice java knowledge mate...
  7. How would I do it then?
  8. I'm just playing around with key bindings and making it call the help command.
  9. How can I obtain a GuiScreen to use? BTW I need to use it in the KeyInputEvent event...
  10. Look at what EntityPlayer.jump()does.
  11. Do you mean addChatMessage?
  12. Hello, I want to let a player send a command, but can't get it working.. So how can I let a player send a command (the help command in this case)?
  13. You'll have to look yourself, here's the AdvancementManager: Minecraft.getMinecraft().player.connection.getAdvancementManager().
  14. Forge checks if the block/item has a subitem, if it has it looks for the data you provided in the json file. If you didn't provide any data, instead of just passing 0 which would be logical to do, it ignores the whole file and throws an exception. But if you do provide the data it doesn't throw any exception and just continues, so it (obviously) doesn't show up in the logs/console. Anyway, great to see I could help.
  15. I don't know what causes it, or if it is blocks only because for me, it works fine for vanilla items. Here's my json file... { "result": { "item": "am:line_button" }, "pattern": [ " s ", "sbs", "sss" ], "type": "minecraft:crafting_shaped", "key": { "s": { "item": "am:steel_ingot" }, "b": { "item": "minecraft:stone_button" } } } Let me try changing it to stone... Nope, doesn't work for stone... Maybe it has something to do with the block metadata? Because sand and stone both have other blocks using meta... Jup, that was it.. Actually looking at the code printing the error in the console that's exactly the thing... Take a look: if (item.getHasSubtypes() && !json.has("data")) throw new JsonParseException("Missing data for item '" + itemName + "'"); So, you need to add "data": 0 to your file.
  16. If you want you can change the title to: [1.12] Registering for Dummies [Solved] You don't have to. To change the title, edit the first post and change the title of the post.
  17. You've got a point there...
  18. It will probably work for 1.8.9 as well...
  19. http://lmgtfy.com/?q=optifine+source The first link...
  20. Hacked clients aren't supported on this forum.
  21. You should use events to register instead of GameRegistry.register(...).

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.