-
Posts
624 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Busti
-
Sorry i missed the !
-
if (this.worldobj.isRemote) { xpCount++; }
-
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.
-
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.
-
Could somebody please help me i've been sitting in front of this for ages now.
-
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
-
Sorry I didn't expect it to be that big.
-
When i kill an Entity will it be removed from any Array it was in? Busti
-
Thank you
-
Hello, how can I detect which item the player clicked my block with? I'm looking forward for an answer. Thanks Busti
-
Thanks that already helped a lot (sometimes you just need to view things from another direction)
-
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
-
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
-
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
-
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
-
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]
-
that was just an example.
-
To make your imports easier to overview you could just import all of your items at once: import assassinhero.parallelworlds.common.items.*;
-
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
Busti replied to juliand665's topic in Modder Support
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! -
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
-
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.
-
I tried that but it didn't work because spelt it wrong. Thanks anyway
-
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
-
Alls are a great invention.