Everything posted by lethinh
-
[1.11.2] [SOLVED] Comparing NBT Data of Two ItemStacks
Use ItemStack#areItemStacksTagEqual
-
[Forge 1.10.2] How to check if the bucket can pick up the liquid?
I am having a problem that I don't know how to check if the bucket can pick up the liquid? And I tried this but this only work with bucket that inside Vanilla for (int i = 0; i < this.craftMatrix.getSlots(); ++i) { if (this.craftMatrix.getStackInSlot(i) != null && (this.craftMatrix.getStackInSlot(i).getItem() == Items.WATER_BUCKET || this.craftMatrix.getStackInSlot(i).getItem==Items.LAVA_BUCKET)) { this.craftMatrix.setStackInSlot(i, new ItemStack(Items.BUCKET)); } else { this.craftMatrix.extractItem(i, 1, false); } } I would greatly appreciated your help!
-
[Forge 1.10.2] Can I use World#isRemote instead of world instanceof WorldServer?
I know this is a really dumb question but I wondered if I can do that.
-
[Forge 1.10.2] How create a tile with fluid using IFluidHandler capability?
I am having problem that I don't know how create a tile with fluid using IFluidHandler capability? Could you help me?
-
[Forge 1.10.2] Can I normally cast from IInventory to IItemHandler?
Oops sorry, I have edited them
-
[Forge 1.10.2] Can I normally cast from IInventory to IItemHandler?
I have problem that the item insert/extract doesn't work. Each time I insert, the stack I insert doesn't decrease and when I extract, the stack doesn't take out. Here is my code: TileSolderingStation: https://pastebin.com/Xzw57H6S ItemHandlerBase: https://pastebin.com/bdgqDhka ItemHandlerPersistentCrafting: https://pastebin.com/fEbec0Mv
-
[Forge 1.10.2] Can I normally cast from IInventory to IItemHandler?
So what method will I use if I use IItemHandler to update the progress bar?
-
[Forge 1.10.2] Can I normally cast from IInventory to IItemHandler?
I mean how to make it work wit Container#onCraftMatrixChanged, IContainerListener#sendAllWindowProperties. They only use IInventory
-
[Forge 1.10.2] Can I normally cast from IInventory to IItemHandler?
I mean how to make it work wit Container#onCraftMatrixChanged, IContainerListener#sendAllWindowProperties. They only use IInventory
-
[Forge 1.10.2] Can I normally cast from IInventory to IItemHandler?
I know this is a really dumb question but I wondered if I can cast from IInventory to IItemHandler. Because it has some methods that use IInventory instead of the IItemHandler capability system. Like Container#onCraftMatrixChanged, IContainerListener#sendAllWindowProperties.,... I would greatly appreciated your help!
-
[Forge 1.10.2] My custom tooltip show gray screen when I open my inventory.
Thanks
-
[Forge 1.10.2] My custom tooltip show gray screen when I open my inventory.
I mean the tooltip when it show. When I open my inventory, the world show gray not the model. This is not about the model. It is about the tooltip.
-
[Forge 1.10.2] My custom tooltip show gray screen when I open my inventory.
Here is my code: https://pastebin.com/jwaFtc6N It is an event handler. I have registered it. but when I opened my inventory, it showed this: Could you help me? If you can, I will greatly appreciated your help!
-
[Forge 1.10.2] How to get time of of an entity (breeding time, dropping items time...)?
Thanks!
-
[Forge 1.10.2] How to get time of of an entity (breeding time, dropping items time...)?
I am having a problem that I do not know how to get time of of an entity (breeding time, dropping items time...)? I would greatly appreciated your help!
-
How to create a custom recipe system?
What kinds of recipe is it shaped recipe (9 inputs and 1 output) or another recipe (1 output and 1 input) or something else?
-
[Forge 1.10.2] How to pull the all the mobs and animals in range to that position (player,entity...) ?
How can I get the mob position?
-
[Forge 1.10.2] Where is the method markBlockForUpdate in World class (used to be available in 1.7.10) ?
I am having problem I don't know where is the method markBlockForUpdate in World class (used to be available in 1.7.10) ? And I don't know how to find what methods and fields change in mcp mappings between versions. Could you guy show me?
-
[Forge 1.10.2] How to pull the all the mobs and animals in range to that position (player,entity...) ?
So what method will I use (using a block) to do that ?
-
[Forge 1.10.2] How to pull the all the mobs and animals in range to that position (player,entity...) ?
I am having problem I don't know how to pull the all the mobs and animals in range to the position of player,entity...? I am greatly appreciated your help if you can show me.
-
[Forge 1.10.2] How to get the weight modifier of the enchantment?
Could you tell me how to get the weight modifier of the enchantment? I have tried this code but this only for 1.7.10. And I don't how it should work in 1.10.2:
-
[Forge 1.10.2] Where is the method consumeInventoryItem and the method joinEntityItemWithWorld
Where are they?
-
[Forge 1.10.2] Where is the field enchantmentsList is forge 1.10.2?
Thanks!
-
[Forge 1.10.2] Where is the field enchantmentsList is forge 1.10.2?
Where is the field enchantmentsList is forge 1.10.2?
-
[Forge 1.10.2] What is the best method to get the entity NBT Data?
I am having problem that I don't know how to get the entity NBT and save it into the stack (spawn egg).
IPS spam blocked by CleanTalk.