Everything posted by loordgek
-
1.12.2 player is null in AttachCapabilitiesEvent
how can that happen and how do i fix that
-
1.12.2 player is null in AttachCapabilitiesEvent
-
[1.11.2][UNSOLVED] Custom Crafting Block Not Crafting
getCapability needs a EnumFacing look at ICapabilityProvider
-
[1.11.2][UNSOLVED] Custom Crafting Block Not Crafting
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
-
[1.12.1] NBT Reading Problem
what is the problem now
-
[1.12.1] NBT Reading Problem
when you check for world.isremote you check for client you need !world.isremote
-
[1.12.1] NBT Reading Problem
cant you see the quote ??
-
[1.12.1] NBT Reading Problem
nope this is the javadoc for isremote
-
[1.10.2] Store Item or Blocks for recipe in same variable
have a seccond constructor w/ takes a block and use Item.getItemFromBlock()
-
[1.12.1] NBT Reading Problem
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
-
[1.10.2] Getting the amount of items in a stack on the ground?
the stackSize is 0 dont know why
-
[1.10.2] Getting the amount of items in a stack on the ground?
getItem().stacksize will give you the amount of items you are comparing itemstack to a item
-
[1.12.1] Canceled PlaceEvent removes block from inventory
public static String blockedBlock = Blocks.DIRT.getRegistryName().toString;
-
[1.12] new registry system example / tutorial
https://github.com/KombatKitten/Collision/blob/Forums-Question/src/main/java/com/github/KombatKitten/dimensionalMagic/DimensionalMagic.java#L38-L45 remove this
-
[1.12] new registry system example / tutorial
@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
-
[1.12.1] Canceled PlaceEvent removes block from inventory
you dont save the RegistryName to the config Block.getRegistryName(); yes works tested it, read the javadoc on it
-
[1.10.2] Capabilities unsynced when opening Creative inventory
dont use AttachCapabilitiesEvent override initCapabilities you dont use it anywhere, post all your code on github
-
[1.12.1] Canceled PlaceEvent removes block from inventory
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 ??
-
[1.12.1] Canceled PlaceEvent removes block from inventory
NO NO NO remove
-
[1.12.1] Canceled PlaceEvent removes block from inventory
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
-
I NEED HELP BADLY
NEVER download from sites like skydaz http://stopmodreposts.org/
-
[1.12.1][Solved] Call a function every time a block is broken
look at the javadoc for HarvestCheck
-
[1.12.1][Solved] Call a function every time a block is broken
is HarvestCheck event better for you ??
-
[1.12.1][Solved] Call a function every time a block is broken
https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_line_breakpoints.htm
-
Is there a way to use Visual Studio 2015 to develop for forge?
https://marketplace.visualstudio.com/items?itemName=MarianLuparuMSFT.MinecraftModDeveloperPack dont know how up to date this is
IPS spam blocked by CleanTalk.