Everything posted by Draco18s
-
Starting a new PowerNet
Why? Why are you building Y.A.P.S.? There's really no point, just go get Universal Electricity and use its API for your machines.
-
Trick Block
Try comparing with this: https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/block/BlockIllusionary.java
-
How to make colored armor
Hmm. Looks like what you have is right.... I managed to get it working. Not sure what I have that you don't. https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/item/ItemArtifactArmor.java
-
Most efficient way to wait?
What Saxon said. If you pause the game your "timer" would keep counting down.
-
[1.7.2] Assets?
You don't need this: @Override public void registerIcons(IIconRegister register) { this.itemIcon = register.registerIcon("test:testItem"); } If you're using a single texture. Also, use all lower case for your texture file name and your setTextureName string.
-
1.7.2 setup project Minecraft is missing!
And did you run "gradlew eclipse"?
-
[1.7.2] how do i save custom int/strings with NBT?
Yes and No. Entirely depends on what you mean to do with it.
-
[1.6.4]Problem with Particle
Particle size is irrelevant. It's the fact that the texture is getting reset, which is why I posted those two classes.
-
[1.6.4]Delay Timer and Custom Key Bindings!
Use NBT data.
-
[1.7.2]Issue with Creative tab?
Looks like you passed a null item to the Creative Tab
-
GUI Overlay Transparancy
Make sure you enable glBlend
-
[1.6.4]Problem with Particle
Particles are a huge right pain in the arse. Take a look at this and this.
-
Right Click Repeat
The noest of nos. There's a reason I referenced the item stack NBT data.
-
[SOLVED]List of near by players
[me=Draco18s]chalks up another one to "did not read IDE's code hinting options."[/me]
-
Right Click Repeat
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer) { if(par1ItemStack.stackTagCompound.getIteger("onItemRightClickDelay") == 0) { par1ItemStack.stackTagCompound.setInteger("onItemRightClickDelay", 5); //do stuff } } Then you can either tick that value down in onUpdate or you can wait for the onItemStoppedUsing (sp?) and set it back to zero
-
Most efficient way to wait?
Thread sleep should never be used for delayed events. As pausing the game wouldn't pause the timer. Always always always use the tick event or onUpdate method of an entity.
-
Find Entity at coordinates XYZ
You can offset AABBs by the look vector so that the AABB is only in front of the player. It's like f*cking magic.
-
The texture wont load!
So descriptive.
-
[SOLVED]List of near by players
is PacketDispatcher.sendPacketToAllAround not sufficient?
-
[1.6.2] GUI Help
Well. You didn't include any of your GUI classes and you don't have a packet handler.
-
Custom creative tab not initializing properly
Try not making it sided.
-
Find Entity at coordinates XYZ
player.getLookVec()?
-
Saving/Loading Inventory [SOLVED]
Your save function doesn't save the NBT back to player.worldObj.getWorldInfo().getNBTTagCompound() in any fashion.
-
The texture wont load!
... What part of "these don't match and they need to" do you keep not getting?
-
Scaling GUI Overlays
You mean multiply by 100, round to the nearest int, then divide by 100? actualX = configX / intendedDefaultScreenWidth * currentScreenWidth Ditto for Y
IPS spam blocked by CleanTalk.