Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

loordgek

Members
  • Joined

  • Last visited

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. loordgek replied to NVaYaD's topic in Suggestions
    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. you override hasTileEntity but not createTileEntity
  19. for Eclipse https://www.eclipse.org/community/eclipse_newsletter/2017/june/article1.php for idea https://www.jetbrains.com/help/idea/using-breakpoints.html
  20. https://github.com/MinecraftForge/MinecraftForge/issues/5735 known

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.