Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. set the translate back to 0
  2. post the class and learn java plz
  3. @rtester do not hijack others threads
  4. do you have https://minecraft.curseforge.com/projects/bdlib/files/2518031#additional-files ??
  5. your path to the recipe is wrong
  6. look at what he is doing he is using a ItemStackHandler to wrap a ItemStackHandler
  7. https://github.com/JGgithub2018/Simple-Batteries/blob/master/src/main/java/jgcodes/sb/forgecaps/ReadOnlyItemHandler.java ?? just implement IItemHandler your modID is to short use ¨simplebatteries¨ not sb
  8. proxy https://mcforge.readthedocs.io/en/latest/concepts/sides/
  9. i was on 1.12.2
  10. public void tick(IBlockState state, World worldIn, BlockPos pos, Random random) { super.tick(state, worldIn, pos, random); Map<BlockPos, IBlockState> blockStates = new HashMap(); blockStates.put(pos.north(), worldIn.getBlockState(pos.north())); blockStates.put(pos.south(), worldIn.getBlockState(pos.south())); blockStates.put(pos.east(), worldIn.getBlockState(pos.east())); blockStates.put(pos.west(), worldIn.getBlockState(pos.west())); for(Map.Entry<BlockPos, IBlockState> blockState : blockStates.entrySet()) { Block block = blockState.getValue().getBlock(); if(block instanceof BlockCrops && block != BlockList.weeds && random.nextInt(4) == 0) { worldIn.setBlockState(blockState.getKey(), BlockList.weeds.getDefaultState()); } } } what is that do it like so public void tick(IBlockState state, World worldIn, BlockPos pos, Random random) { super.tick(state, worldIn, pos, random); for (EnumFacing facing : EnumFacing.HORIZONTALS){ BlockPos offSet = pos.offset(facing); IBlockState blockState = worldIn.getBlockState(offSet); Block block = blockState.getBlock(); if(block instanceof BlockCrops && block != BlockList.weeds && random.nextInt(4) == 0) { worldIn.setBlockState(blockState.getKey(), BlockList.weeds.getDefaultState()); } } }
  11. you need to look at EntityEvent.EnteringChunk. i cant remember, but that event only fires when a entity spawns
  12. check if the InventoryCrafting is yours
  13. atom is violating the EULA by shipping the minecraft code use sponge
  14. where do you download mods from ? 1Legends is for 1.7.10
  15. https://github.com/MarioAndWeegee3/SimpleElectrics/blob/master/src/main/java/com/marioandweegee3/simpleelectrics/common/tile_entities/grinder/GrinderTile.java#L286 dont do that, it will create unnecessary objects that needs to be cleaned up and you can not invalidate the cap when the tile gets removed see https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/main/java/net/minecraftforge/common/util/LazyOptional.java#L280-L292 as for your problem use the debugger to find out why it is not working
  16. stack.setCount(stack.getCount()-1); use stack.srink(1) (stack.getCount() > 0 && stack.getItem() != Items.AIR) result.getItem() != Items.AIR use !stack.isEmpty() what do you want ??
  17. tyleentity.getStackInSlot(x)!=null||tyleentity.getStackInSlot(x)!= new ItemStack(Items.AIR).EMPTY what is this, use stack.isEmpty and plz format your code it is really hard to read did you ever set itemlist ?
  18. remove optifine
  19. you override hasTileEntity but not createTileEntity
  20. for Eclipse https://www.eclipse.org/community/eclipse_newsletter/2017/june/article1.php for idea https://www.jetbrains.com/help/idea/using-breakpoints.html
  21. https://github.com/MinecraftForge/MinecraftForge/issues/5735 known
×
×
  • Create New...

Important Information

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