Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

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. the stackSize is 0 dont know why
  11. getItem().stacksize will give you the amount of items you are comparing itemstack to a item
  12. public static String blockedBlock = Blocks.DIRT.getRegistryName().toString;
  13. https://github.com/KombatKitten/Collision/blob/Forums-Question/src/main/java/com/github/KombatKitten/dimensionalMagic/DimensionalMagic.java#L38-L45 remove this
  14. @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
  15. you dont save the RegistryName to the config Block.getRegistryName(); yes works tested it, read the javadoc on it
  16. dont use AttachCapabilitiesEvent override initCapabilities you dont use it anywhere, post all your code on github
  17. 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 ??
  18. 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
  19. NEVER download from sites like skydaz http://stopmodreposts.org/
  20. look at the javadoc for HarvestCheck
  21. is HarvestCheck event better for you ??
  22. https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_line_breakpoints.htm
  23. https://marketplace.visualstudio.com/items?itemName=MarianLuparuMSFT.MinecraftModDeveloperPack dont know how up to date this is
×
×
  • Create New...

Important Information

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