Everything posted by IAmDrinkingLemonade
-
[1.8] Entity stealing items from inventory
Seriously, if you just completely disregard anything we say, then yes, your problems will not magically disappear in a puff of smoke. Does that mean it is not possible to do what I want to do?
-
[1.8] Entity stealing items from inventory
this is line 70 ItemStack stack = play.inventory.getCurrentItem(); I have no clue what I need to change it to
-
[1.8] Entity stealing items from inventory
http://pastebin.com/LNZjWWBx
-
[1.8] Entity stealing items from inventory
As soon as I spawn the entity in the world it crashes, and if I already have the entity in the world it crashes before I can even see the world.
-
[1.8] Entity stealing items from inventory
It is telling me that that is what caused the error. I shoul've mentioned this but I have the original code in my onLivingUpdate in my entity's class
-
[1.8] Entity stealing items from inventory
Post the crash. It is telling me I have a problem with this line ItemStack stack = play.inventory.getCurrentItem();
-
[1.8] Entity stealing items from inventory
I spawned the entity within 4 blocks of me (what I set the distance to) and it still crashed.
-
[1.8] Entity stealing items from inventory
Hi! I am working on a mod and I want my entity to take an item out of my inventory when I get too close too it I tried this EntityPlayer play = this.worldObj.getClosestPlayerToEntity(this, 4.0F); ItemStack stack = play.inventory.getCurrentItem(); if(stack != null && stack.getItem() == Items.acacia_door){ --stack.stackSize; } But it just crashes when I spawn the entity can anyone help
-
[1.8] Make a link open on GUI button click
handleComponentClick does not exist, but I did more research and found GuiConfirmOpenLink gui = new GuiConfirmOpenLink(this, "soggymustache.net", 0, true); gui.disableSecurityWarning(); mc.displayGuiScreen(gui); It shows the thing I need but the only working button is the copy to clipboard
-
[1.8] Make a link open on GUI button click
Yep! it exists but Im not sure about how to use it
-
[1.8] Make a link open on GUI button click
As the title says I want to have the game open a webpage when I click a button using the simple minecraft link opener thingy that says "never open links from people you dont trust" I already have the entire GUI made I just need to get the button to work can anyone help me?
-
[1.8] Stretch out GUI image
Since drawTexturedModalRect is in use here it must actually be exactly 256x256. If that is not the case, drawModalRectWithCustomSizedTexture must be used. Thanks I added that and it worked I only need to mess with positions now!
-
[1.8] Stretch out GUI image
Hi!, I am making a GUI that is almost a guide for my mod but the image will be lets say 200 pixels wide but the gui always sets it to 100 can sqeezes it together here is my GUI code: http://pastebin.com/LBd1nnJ7 thanks!
-
[1.8] Use spawn eggs of custom entitie
I have added in custom entities in my mod, I want to make it so when you right click the entity with an item it will drop the spawn egg, I already got it working it will drop any item I need to know how to make it drop it's spawn egg. thanks!
IPS spam blocked by CleanTalk.