Jump to content

Kokkie

Forge Modder
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    1

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. Turned up nothing
  21. Is there a new way of registering items and models I haven't heard of yet using events?
  22. Indeed, IItemHandler is the alternative, and better way, for IInventory
  23. It isn't that bad...
×
×
  • Create New...

Important Information

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