
Mightydanp
Members-
Posts
225 -
Joined
-
Last visited
Everything posted by Mightydanp
-
Alright if i remove that and theres a cool down ++ how am i sepost to do that without the cooldown ++ ?
-
Thats what i am trying to do in http://pastebin.com/J10X0wHb
-
right at first this item want a metadata and it looked like this, it worked fine.... http://pastebin.com/uX0AeCjd then i made it a metadata and i couldn't get the cool-down to stay because after it would change the metadata to -1 then it would automatically reset the cool down.. i tried to accomplish saving the metadata by using stacktagcompound but i ended up breaking it where it wouldn't kill anything at all. i would enjoy some help on this please.... this is the code i made so far(warning it is messy for right now) http://pastebin.com/J10X0wHb
-
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
Wait if it says if worldhellworld doesnt it only work in the nether ? -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
Still returned unactive -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
i have tried something like this @SideOnly(Side.CLIENT) @Override public IIcon getIcon(IBlockAccess iBlockAcess, int x, int y, int z, int side){ if(iBlockAcess instanceof World){ long worldTime = ((World) iBlockAcess).getWorldTime() % 24000; if(worldTime <= 1200){ return iconArray[iBlockAcess.getBlockMetadata(x, y, z)]; } } return iconUnactive[iBlockAcess.getBlockMetadata(x, y, z)]; } -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
Alright so your saying i cant use it in the way that im using it to fins out the time of say ? ( i just woke up) -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
i have tried something like this @SideOnly(Side.CLIENT) @Override public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){ if(world instanceof World){ if(((World) world).getWorldTime() >= 0 && ((World) world).getWorldTime() <= 2400){ return iconArray[world.getBlockMetadata(x, y, z)]; } } return iconUnactive[world.getBlockMetadata(x, y, z)]; } -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
in this public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side){} IBlockAccess does not have access to getTotalWorldTime all that is in the IBlockAccess is getBlock getTileEntity getLightBrightnessForSkyBlocks getBlockMetadata isBlockProvidingPowerTo isAirBlock getBiomeGenForCoords getHeight extendedLevelsInChunkCache isSideSolid -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
This does not work it always returns false @SideOnly(Side.CLIENT) @Override public IIcon getIcon(int side, int meta) { if(!Minecraft.getMinecraft().theWorld.isRemote){ if(Minecraft.getMinecraft().theWorld.isDaytime() == true){ return unActive; }else if (Minecraft.getMinecraft().theWorld.isDaytime() == false){ return magic; } } return unActive; } -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
I have tried that in a form it did not work because it would always we turn false -
changing texture based on tileentity time of day
Mightydanp replied to Mightydanp's topic in Modder Support
im not using a tileneitity special renerer i am using a basic furnace code to try to get the blocks to switch from one block to the other based on what time of day it is -
Alright i am changing my block status on what time of day it is. i am using metadata for this code i have based this off of the furnace and how it returns its active texture I do have one question. since i am using metadata on the blocks do i have to get and save the the metadata of the block for it to use later because some of the ids are 506, 506:1 .... 509, 509:1 an i think if i did it like this without the world.setBlockMetadataWithNotify(int, int, int, int, int); instead i wouldnt be able to change it to the block it needs to be it would just switch from 506:2 to : 509 to 506 and that would mess up the meaning of the block http://pastebin.com/Y6kwxpBc http://pastebin.com/zpdmACmL
-
im a little bit confused is there a way to access .. public ItemStack[] inventory = new ItemStack[iNV_SIZE]; when it was static this worked perfectly @Override public boolean shouldAddToList (){ return InventoryEotInventory.inventory[0] != null && InventoryEotInventory.inventory[0].getItem() == ModItems.tier1Bag; } now since i took it off to get it to work it wants me to change it to static... is here anyother way i can cheek if there is a item in that slot ? because ive tried to fix it myself for the past hour and i cannot figure out how..
-
would it be a good idea to put my gui handler like you have it or keep it as a separate class
-
Yea he pointee something out that i missed when i wae cleaning up the code... sorry for ranting i just alot of stuff in life have me stressing so i cannot think clearly, but i do try and solve the problem my self sometimes someone else can see something i cannot it is usualy why i ask for help
-
This is what i looked over https://github.com/coolAlias/Tutorial-Demo/blob/1.7.10/src/main/java/tutorial/entity/ExtendedPlayer.java And for static i know about static now something i didnt know (noone is perfect ) i put everything in there in my extended player ( i used to call rhe class eotPlayerStats didnt sound right though)
-
All tue code was from the hit hub under the 1.7.10 i read everything u used in the /* */ // the whole reason i went to ur gir hub was becauae,ur regular tutorial format was hard to read, and i couldnt copy paste it because even of i did would have error and would end up spending 5 minuts on each class prettying it up because minecraft doesnt like java code you 1.7.10 code was what i used and then if u look at the main one i think u made it mainly for 1.8 it has every change that the 1.7.10 was sepost to have
-
Everything in that class,came from the tutorial .... i didnt change anything in the tutorial Edit : i looked back over at ur git hub tutorial n u changed it n fixed it ..... thanks for making me seem stupid ^^ i love it sooo much everything i used is from ur tutorial all i did was delete everything involving ur mana so dont say im wrong i came here for someone to help me with what u gave me..
-
For my extended player and my packet i fallowed someone's tutorial
-
https://github.com/mightydanp/EssenceofTech?files=1 my git hub
-
When i click on the item and place it into the slot it will place it into the slot but also still have it in my mouse so now there is 2 of the item, and if i shift click into the slot it will still be in the same slot but will be in the slot it is sepost to be in also.. i looked over most of the code and classes but i cannot find the cause of this..
-
What i am having trouble with is when i build the jar the files in dependent folder does not get compiled with it http://pastebin.com/FF2pw5u5