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?
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
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
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?
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!
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!
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!