
Everything posted by Kokkie
-
[1.11.2] Capability not working right
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?
-
[1.11.2] Capability not working right
No..? How should I do that?
-
[SOLVED] [1.11.2] Custom Arrow not rendering
new ResourceLocation("modid:entity_name")
-
[SOLVED] [1.11.2] Custom Arrow not rendering
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 { }
-
[SOLVED] [1.11.2] Custom Arrow not rendering
You only need to change the texture for the 'arrow'
-
[1.11.2] Capability not working right
bumo
-
[1.11.2] Changing bonemeal behavior
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
-
[1.11.2] Changing bonemeal behavior
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); } } } }
-
[1.11.2] Changing bonemeal behavior
How can I forge it to make it full-grown?
-
[1.11.2] Changing bonemeal behavior
Where can I find that? Couldn't find ItemBonemeal, forgot it was a dye
-
[1.11.2] Changing bonemeal behavior
How do I set the grow level?
-
[1.11.2] Changing bonemeal behavior
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...
-
Disable potions moving the players inventory
try installing a fresh forge and then just copy the code you already have into it...
-
[1.11.2] Best Way To Render Item Above Block
I don't think you can do that in a FastTESR...
-
Disable potions moving the players inventory
I wanted to say that D:
-
Disable potions moving the players inventory
That isn't the complete file
-
Disable potions moving the players inventory
where did you change that, and you didn't show your build.gradle file
-
Disable potions moving the players inventory
How did you try to update? Show your build.gradle file...
-
Disable potions moving the players inventory
Always if you update just do it to the latest version, unless you have a good reason not to
-
AxisAligned intersectsWith problem
Yeah that was it... Forgot it
-
[1.11.2] Capability not working right
Turned up nothing
-
[1.11.2] Item textures
Is there a new way of registering items and models I haven't heard of yet using events?
-
Tile Entity Confusion
Indeed, IItemHandler is the alternative, and better way, for IInventory
-
[1.11] Yay! Nestable shulker boxes -- a feature or bug?
It's probably a bug
-
AxisAligned intersectsWith problem
It isn't that bad...
IPS spam blocked by CleanTalk.