Everything posted by Animefan8888
-
minecraft forge(eclipse) crashs if i test my mod
Could you post your code, and use the code/spoiler buttons when creating a post/reply please.
-
[1.10.2][GUI][Containers][Packets]Any good tutorials on GUIs for 1.10.2?
A little any questions on them?
-
[1.10.2][Container][Slot][IInventory]Slots still need IInventory?
Drag type is quite obvious it is the state of the drag the player is trying to use From container getDragEvent which is called in Container#onSlotClick /** * Args : clickedButton, Returns (0 : start drag, 1 : add slot, 2 : end drag) */ ClickType is whether the player is shift clicking, or drag clicking etc. Look at ClickType. And the other to are the same so...
-
[1.10.2][Container][Slot][IInventory]Slots still need IInventory?
You use new SlotItemHandler to add slots to a container that's TileEntity uses ItemStackHandler.
-
1.10.2 - Crashing on Server Test, Not on Client Test [SOLVED]
You definitely misunderstood, what they meant was you create three classes one Called CommonProxy where things that need to happen on both sides go, then you have ServerProxy and ClientProxy which call the super method of CommonProxy. Though I don't see why it needs to be done that way. You could also put everything in ServerProxy and have ClientProxy extend ServerProxy, and call super methods. Though I just stick to using my Main Class.
-
[1.10] Check if block can be harvested and then harvest it without player object
I have never seen anything that requires a tool to be used to break an IGrowable object, but you could create a fake player. From BlockEvent.BreakEvent /** Reference to the Player who broke the block. If no player is available, use a EntityFakePlayer */ Or even store the players UUID and Name when they place it, then check if they are on use the player if so, if not create one(recommend the first more).
-
1.10.2 - Crashing on Server Test, Not on Client Test [SOLVED]
You never do anything in your common proxy, which is the servers side.
-
1.10.2 - Crashing on Server Test, Not on Client Test [SOLVED]
Show me your proxies.
-
1.10.2 - Crashing on Server Test, Not on Client Test [SOLVED]
Is angelicOre ever initialized. Because it is a NPE.
-
[1.10.2][GUI][Containers][Packets]Any good tutorials on GUIs for 1.10.2?
Also packets haven't really been changed since 1.7.10 either, just thought I would throw that in.
-
[1.10.2][GUI][Containers][Packets]Any good tutorials on GUIs for 1.10.2?
You weren't supposed to use player.displayGui(...) well I mean you soulc, but why not create your own handler for it. Not sure if you can anymore I have never used it.
-
[1.10.2][GUI][Containers][Packets]Any good tutorials on GUIs for 1.10.2?
If you are using a custom gui and a custom container you should also be using a GuiHandler, which it is commonly called, but it is just a class that implements IGuiHandler.
-
[1.10.2][GUI][Containers][Packets]Any good tutorials on GUIs for 1.10.2?
Almost nothing has changed since 1.7.10 when dealing with Containers and Guis.
-
[1.10.2] Error on use for custom healing item
You subtract from the stacksize then you damage the item?
-
[1.10] Sending data with packets [SOLVED]
First server handles all data. Second it isnup to you when and where to send, because it is based on what you want changing the damage to do. Sending it back would be adding a return to the Handler.
-
[1.9] Functional items make game crash!
Post your code.
-
[1.10.2] Block not working!
Post your code and the exact error.
-
["1.9.4"]addInformation
Oh, ok I had the wrong import in my project. Good thing I am not actually using it.
-
["1.9.4"]addInformation
tooltip.add(I18n.translateToLocal("")); It is deprecated as of 1.10 not sure if it will be removed or not.
-
Random crash on world start up [1.10.2]
We can't do anything without the code. Do you ever use Minecraft.getMinecraft().theplayer?
-
Custom inventory with 1 slot.
You should have your own Container and Gui. You will also need a GuiHandler which is a class that implements IGuiHandler. There are plenty of tutorials out there for those, as they haven't really changed much.
-
1.7.10 ---> 1.10.2 - Need a Bit of Assistance Please
Look at onItemRightClick in Item it has changed and instead of EnumAction.BLOCK use EnumAction.BOW
-
Custom inventory with 1 slot.
How do you put Items into the inventory?
-
Custom inventory with 1 slot.
Probably has something to do with your container.
-
1.7.10 ---> 1.10.2 - Need a Bit of Assistance Please
I believe both onItemRightClick and onPlayerStoppedUsing have been changed.
IPS spam blocked by CleanTalk.