Jump to content

Kokkie

Forge Modder
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    1

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. Sorry, didn't look well enough... And please don't talk about abusive... Sorry that was just.. Something...
  5. Also, you tried to make an import static, nice java knowledge mate...
  6. I'm just playing around with key bindings and making it call the help command.
  7. How can I obtain a GuiScreen to use? BTW I need to use it in the KeyInputEvent event...
  8. Look at what EntityPlayer.jump()does.
  9. Do you mean addChatMessage?
  10. 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)?
  11. You'll have to look yourself, here's the AdvancementManager: Minecraft.getMinecraft().player.connection.getAdvancementManager().
  12. 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.
  13. 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.
  14. 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.
  15. It will probably work for 1.8.9 as well...
  16. http://lmgtfy.com/?q=optifine+source The first link...
  17. Hacked clients aren't supported on this forum.
  18. You should use events to register instead of GameRegistry.register(...).
×
×
  • Create New...

Important Information

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