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. I'm going to assume "no." I've done the best I can, all I know is "you've done something that is fixable, but I don't know what or how." The last time I tried to do something like this was 1.6.4 and I remember naught. Ok D:
  2. Make sure it is called after you register your items
  3. Is there anyone that can help me?
  4. Why isn't it accurate?
  5. That is not how it works, you need a TESR
  6. Sorry? I guess? Well... Ok... .
  7. Sorry D': I was just trying to help, normally I don't give copy-paste stuff either but this was just... To much for my brain... And also, why is it not the right solution? I use this for a block, that's why I thought it had to be the coörds
  8. Let me make this as copy-paste friendly, as you want it, served warm and fresh: @Override public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) { playerIn.openGui(Main.instance, GuiHandler.TEST_BAG, worldIn, playerIn.getPos().getX(), playerIn.getPos().getY(), playerIn.getPos().getZ()); return super.onItemRightClick(itemStackIn, worldIn, playerIn, hand); }
  9. How do I use Throwables.propagate?
  10. private static final Field inMoreWorldOptionsDisplay = ReflectionHelper.findField(GuiCreateWorld.class, "field_146344_y", "inMoreWorldOptionsDisplay"); @SubscribeEvent public void onGuiPostInit(GuiScreenEvent.InitGuiEvent.Post event) { GuiScreen gui = event.getGui(); if (gui instanceof GuiCreateWorld) { List<GuiButton> buttonList = event.getButtonList(); GuiButton giveItem; giveItem = addButton(new GuiButton(11, gui.width / 2 + 5, 187, 150, 20, "Give Items: OFF"), buttonList); giveItem.visible = inMoreWorldOptionsDisplay.getBoolean(gui); ShouldGiveItems.worldCreateGive = false; for (int i = 0; i < buttonList.size(); i++) { GuiButton button = event.getButtonList().get(i); if (button.id == 3) { if (inMoreWorldOptionsDisplay.getBoolean(gui)) { button.xPosition = gui.width / 2 - 155; } else { button.xPosition = gui.width / 2 - 75; } } } } } What should I do exceptions?
  11. I now have this: final boolean inMoreWorldOptionsDisplay = (Boolean) ReflectionHelper.findField(GuiCreateWorld.class, "field_146344_y", "inMoreWorldOptionsDisplay").get(gui); Shouldn't that work
  12. I'm trying to get the booleans from the class, but I get a Field, which you can't convert to a boolean
  13. What should I do?
  14. Type mismatch: cannot convert from Field to boolean
  15. Ah, got it, but how can I use the srg name in real minecraft, and use the other name in eclipse?
  16. I still don't know how... Sorry if I miss something
  17. Yes, how can I see them?
  18. Kokkie replied to Xawolf's topic in Modder Support
    Look at how the scale method is used for for example baby's of cows etc.

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.