Jump to content

Leaderboard

Popular Content

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

  1. With difficulty. Here's how I modify the loot tables: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/farming/FarmingEventHandler.java#L362 Note that this makes calls out to a library function, the important one is probably this one: https://github.com/Draco18s/ReasonableRealism/blob/1.12.1/src/main/java/com/draco18s/hardlib/util/LootUtils.java#L87
    1 point
  2. Why the hell are you storing your TE's position? TEs already do this, that's what getPos() does.
    1 point
  3. You can use == to check Block instances, as they are singletons: world.getBlockState(pos).getBlock() == Blocks.BED. This works for all IForgeRegistrys (look at the ForgeRegistries class).
    1 point
  4. When I get deeper in to modding, I'll probably be able to find the root cause of my problem. Now i just want to continue my mod development. Thank you all for help !
    1 point
  5. -------------------------------------------- Not a solution! --------------------------------------------- So I've done like @KittenKodersuggested: Is this cheat ? @Override public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof JdwOSDigger) { ((JdwOSDigger)tileentity).setPos(pos); worldIn.scheduleBlockUpdate(pos, this, 20, 1); // schedule first update } } @Override public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand) { if(!worldIn.isRemote) { TileEntity tileentity = worldIn.getTileEntity(pos); if (tileentity instanceof JdwOSDigger){ ((JdwOSDigger)tileentity).jdwUpdate(); //call jdwupDate in tile entity worldIn.scheduleBlockUpdate(pos, this, 20, 1); //schedule next update. } } }
    1 point
  6. Oh there. I had one professor who did that, and another who didn't. My dept. head nowadays doesn't like it, so I just don't do it. I thought he was referring to an actual error in my scripting.
    1 point
×
×
  • Create New...

Important Information

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