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. Oh that, well I send a packet to the server so yes I do... But I don't change it on the client, should I?
  2. No..? How should I do that?
  3. new ResourceLocation("modid:entity_name")
  4. To give it your own texture, you copied the rendering from the RenderArrow and that isn't needed. Also, you have a for loop that ends on ; instead of { }
  5. You only need to change the texture for the 'arrow'
  6. Wow I had that idea in the beginning but thought Nah that wont work.... @SubscribeEvent public void onCropGrow(BonemealEvent event) { event.setCanceled(true); World world = event.getWorld(); IBlockState state = event.getBlock(); BlockPos pos = event.getPos(); ItemStack stack = event.getEntityPlayer().getActiveItemStack(); if (state.getBlock() instanceof IGrowable) { IGrowable igrowable = (IGrowable) state.getBlock(); if (igrowable.canGrow(world, pos, state, world.isRemote)) { if (!world.isRemote) { igrowable.grow(world, world.rand, pos, state); while (igrowable.canGrow(world, pos, state, world.isRemote)) { igrowable.grow(world, world.rand, pos, state); } stack.shrink(1); } } } } Let's test this out
  7. Through some hacky nifty ways I managed to come up with this, would it work? @SubscribeEvent public void onCropGrow(BonemealEvent event) { event.setCanceled(true); World world = event.getWorld(); IBlockState state = event.getBlock(); BlockPos pos = event.getPos(); ItemStack stack = event.getEntityPlayer().getActiveItemStack(); if (state.getBlock() instanceof IGrowable) { IGrowable igrowable = (IGrowable) state.getBlock(); if (igrowable.canGrow(world, pos, state, world.isRemote)) { if (!world.isRemote) { igrowable.grow(world, world.rand, pos, state); if (igrowable instanceof BlockCrops) { world.setBlockState(pos, state.withProperty(BlockCrops.AGE, ((BlockCrops)igrowable).getMaxAge())); } stack.shrink(1); } } } }
  8. How can I forge it to make it full-grown?
  9. Where can I find that? Couldn't find ItemBonemeal, forgot it was a dye
  10. How do I set the grow level?
  11. Hello, is there a way to change the amount that bonemeal lets the crop grow? I want to make it so it's like the old days that you just need 1 bonemeal per crop...
  12. try installing a fresh forge and then just copy the code you already have into it...
  13. I don't think you can do that in a FastTESR...
  14. I wanted to say that D:
  15. That isn't the complete file
  16. where did you change that, and you didn't show your build.gradle file
  17. How did you try to update? Show your build.gradle file...
  18. Always if you update just do it to the latest version, unless you have a good reason not to
  19. Yeah that was it... Forgot it
  20. Is there a new way of registering items and models I haven't heard of yet using events?
  21. Indeed, IItemHandler is the alternative, and better way, for IInventory
  22. It isn't that bad...

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.