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. how can that happen and how do i fix that
  2. getCapability needs a EnumFacing look at ICapabilityProvider
  3. why do you cast ItemStack here https://github.com/ModMCdl/Magitech/blob/master/src/main/java/com/modmcdl/magitech/tileenitity/TileEntityPestle.java#L106 i dont think you can use a HashBasedTable here because the hashcode from the itemstacks are different https://github.com/ModMCdl/Magitech/blob/master/src/main/java/com/modmcdl/magitech/recipe/PestleRecipe.java#L17
  4. what is the problem now
  5. when you check for world.isremote you check for client you need !world.isremote
  6. cant you see the quote ??
  7. nope this is the javadoc for isremote
  8. have a seccond constructor w/ takes a block and use Item.getItemFromBlock()
  9. https://github.com/MineDen/m1/blob/master/src/main/java/com/mineden/mtest/tileentity/AutoTEEnergy.java#L56-L57 nbt is only saved on the server
  10. getItem().stacksize will give you the amount of items you are comparing itemstack to a item
  11. public static String blockedBlock = Blocks.DIRT.getRegistryName().toString;
  12. https://github.com/KombatKitten/Collision/blob/Forums-Question/src/main/java/com/github/KombatKitten/dimensionalMagic/DimensionalMagic.java#L38-L45 remove this
  13. @Kombat Kitten this one https://www.youtube.com/watch?v=pdzTukOnDbI ?? lets see what is wrong w/ it using GameRegistry.register() - check the old way of register the render - check getUnlocalizedName().substring(5) - check
  14. you dont save the RegistryName to the config Block.getRegistryName(); yes works tested it, read the javadoc on it
  15. dont use AttachCapabilitiesEvent override initCapabilities you dont use it anywhere, post all your code on github
  16. public EnumActionResult onItemUse(EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) { if (!worldIn.isRemote) return net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(this, playerIn, worldIn, pos, side, hitX, hitY, hitZ, hand); EnumActionResult enumactionresult = this.getItem().onItemUse(playerIn, worldIn, pos, hand, side, hitX, hitY, hitZ); if (enumactionresult == EnumActionResult.SUCCESS) { playerIn.addStat(StatList.getObjectUseStats(this.item)); } return enumactionresult; } this is the point in the itemStack where it gets called from,and the problem you have why is the hook only called from the server side and not both ??
  17. https://github.com/MinecraftForge/MinecraftForge/blob/1.12.x/src/test/java/net/minecraftforge/debug/BlockPlaceEventTest.java this is the test for place event DONT use int blockId = Block.getIdFromBlock( event.getPlacedBlock().getBlock() use the RegistryName
  18. NEVER download from sites like skydaz http://stopmodreposts.org/
  19. look at the javadoc for HarvestCheck
  20. is HarvestCheck event better for you ??
  21. https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_line_breakpoints.htm
  22. https://marketplace.visualstudio.com/items?itemName=MarianLuparuMSFT.MinecraftModDeveloperPack dont know how up to date this is

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.