Everything posted by Busti
-
[Unsolved]Weird code behaviour...?
Sorry i missed the !
-
[Unsolved]Weird code behaviour...?
if (this.worldobj.isRemote) { xpCount++; }
-
[Unsolved]Weird code behaviour...?
I think you misunderstood me. My problem is That the code is called twice on both sides. If I would only call it on the Server it would also do It twice but only on the server.
-
[Unsolved]Weird code behaviour...?
When i do it only on the server i dont get a graphic effect which I deleted from the code in this post. I need to spawn an entity when the orb got killed.
-
[Unsolved]Weird code behaviour...?
Could somebody please help me i've been sitting in front of this for ages now.
-
[Unsolved]Weird code behaviour...?
Hello, I've got this code to suck XP Orbs to a block and increase a Variable when they are touching the block. This should increase the XP Count by one whenever any orb touches the block. But it seems to be doing it twice on the server and also on the client. For testing I added a line which should print the current value whenever this happens and this is what I got: (Note that the XP count was 0 before) 2013-05-20 23:23:55 [iNFO] [sTDOUT] 1 2013-05-20 23:23:55 [iNFO] [sTDOUT] 2 2013-05-20 23:23:55 [iNFO] [sTDOUT] 1 2013-05-20 23:23:55 [iNFO] [sTDOUT] 2 How can I prevent this from happening? Thanks for any help Busti
-
Kill Entity / Remove Array...
Sorry I didn't expect it to be that big.
-
Kill Entity / Remove Array...
When i kill an Entity will it be removed from any Array it was in? Busti
-
[Solved]How to detect player used item?
Thank you
-
[Solved]How to detect player used item?
Hello, how can I detect which item the player clicked my block with? I'm looking forward for an answer. Thanks Busti
-
Weird Entity spawning Error
Thanks that already helped a lot (sometimes you just need to view things from another direction)
-
Why is everything called twice?
Hello, I've got a block which outputs a message when you right click it. But its doing it twice? Why does this happen? Here is my code: public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { par5EntityPlayer.addChatMessage("Chat Message"); return true; } Does anybody know why this happens? Busti
-
Weird Entity spawning Error
Hello, I tried to Spawn an Entity during loading information from a TileEntity NTB Its giving me this Error: 2013-05-13 17:47:55 [sEVERE] [ForgeModLoader] A TileEntity TileEntitySoulPipe(busti2000.technica.tileentity.TileEntitySoulPipe) has thrown an exception during loading, its state cannot be restored. Report this to the mod author java.lang.NullPointerException How can i get this to work? Please help! Busti
-
Save Entity to NTB?
Hi, I've just a simple question... Is it possible to save an entity to the Tileentity NTBTagCoumpound? If somebody has an idea, please answer Thanks Busti
-
How to make an Entity noclip?
Hello, I've been trying for ages now how to make an Entity Noclip but using the normal methods didn't work: /** * Whether this entity won't clip with collision or not (make note it won't disable gravity) */ public boolean noClip() { return true; } Can somebody please help? Busti
-
[1.5.2] Creating a pipe?
Hi, I am making a pipe system at the moment and trust me it isn't that hard. The first thing you should learn about ist how to render a non cube object (TileEntitySpecialRenderer) and what a TileEntity is and how to use it .That will help you a lot. My pipes are looking like this at the moment: https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-frc1/v/912200_545038618868461_202074419_n.jpg?oh=5b42455b67b7f5c083bafeb53e6ff9e0&oe=518F7B93&__gda__=1368368779_e8adbe06e8e6ff59bb3029ac10fba611[/img]
-
Extended Tileentity?
that was just an example.
-
Error on custom food
To make your imports easier to overview you could just import all of your items at once: import assassinhero.parallelworlds.common.items.*;
-
Extended Tileentity?
Hello, this might be a Java question but I am new to java so please don't write "Learn Java" I extended a TileEntity and it is working fine except for variables, when I define a Variable in the Constructor the value won't be shown in the SubClass. When i try to print the Value of the Variable I am getting NaN("Not a Number") My code:
-
[1.5.2][solved] Rendering something transparent inside something opaque
You need to enable the alpha drawing like this: GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); model.renderModelPart(); GL11.glDisable(GL11.GL_BLEND); then it will work. Make sure to render the Transparent part after Everything else!
-
How to Render a PlayerName above a Block?
Hello, how can I get the name which is shown above the Player in multiplayer to Render above a Block (In a TileEntitySpecialRenderer) Like the powerMeter in Factorisation. Busti
-
custom Block Render Rotations
As this is a techne model you can just add offset to the Cubes and then make them rotate around the blue ball you see in techne using "setRotationAngles" Function.
-
[Solved] How to get a Spawned Entity?
I tried that but it didn't work because spelt it wrong. Thanks anyway
-
[Solved] How to get a Spawned Entity?
Hello, I have a simple Question, How can I get an Entity I Spawned with this.worldObj.spawnEntityInWorld(new EntityXPOrb(this.worldObj, this.xCoord, this.yCoord, this.zCoord, 1)); For instance a XP Orb I am looking forward to an answer. Busti
-
How to get information from a Tileentity?
Alls are a great invention.
IPS spam blocked by CleanTalk.