Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/18/18 in all areas

  1. After a bit of searching, I found this topic on the LWJGL forums talking about this issue occuring on Linux. It seems that this is caused when Xrandr is not installed. Try installing the xrandr package.
    1 point
  2. Add this to your class that has @Mod.EventBusSubscriber @SubscribeEvent public static void onHarvest(BlockEvent.HarvestDropsEvent event) { if (event.getHarvester() != null) { List<ItemStack> drops = event.getDrops(); if(drops!=null && drops.size()>0) { BlockPos pos = event.getPos(); IBlockState blockstate = event.getWorld().getBlockState(pos); Block block = blockstate.getBlock(); if(block instanceof BlockGrass) { drops.add(new ItemStack(Item.REGISTRY.getObject(new ResourceLocation("minecraft", "wheat_seeds")))); } } } }
    0 points
×
×
  • Create New...

Important Information

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