Jump to content

Busti

Forge Modder
  • Posts

    624
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Busti

  1. Hello, is there any easy way to render a Text above a Block like the Text above the Player? I'am trying to display some information above a Block when a Player clicks it with a special Item but only showing it in the chat seems a little bit boring I'm looking forward to your Help Busti
  2. The value is changed on the server and need to be send to the client... I think it wouldn't help to just update the Block.
  3. I made a block with a TileEntity which holds an int value that I need to send to the client whenever it is changed to render the Block correctly.
  4. Hello, I want to send an update to a Block on the client do need to send the position of the Block too or is there any method that will automatically find the block for me so I dont have to send the coordinates via the Packet I'm looking forward for any help Busti
  5. Oh. I forgot to say that it is a Block which holds the variable.
  6. You will need a Package handler which sends the Information to the Server as seen in this Tutorial: http://www.minecraftforge.net/wiki/Containers_and_GUIs#Buttons
  7. Hello, I've made a custom storage system which holds an Integer number of energy but this will only update on the server. How can I send this Variable to the client to indicate the Value over a Renderer? (The renderer is already done and working) I'm looking forward for any Help Busti
  8. I've tried to override move entity to move it just with position updates but it seems theat this is a render issue. I discoverd that its position is right but it seems that the renderer has a pushOutOf blocks function too.
  9. It doesn't work but it actually helped a bit. I've also tried to make the Entity move manual by just doing this: this.prevPosX = this.posX; this.prevPosY = this.posY; this.prevPosZ = this.posZ; this.setPosition(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ); but this doesn't work either so the Problem is not caused by noclip. It seems that my Entity is trying to go out of any bounding box but I couldn't find the code that is causing this. I need to fix this because I need to make an Entity render inside of a Tube. I've already got the system for the tubes working and it is also working fine without the glitch when I don't register the Entity. If you know what is causing this of if you had or still have the same problem please reply to this thread, anything could be helpful. Busti
  10. What is your problem? Maybe it is the same as mine.
  11. I'm just replying because I need to fix this Problem. It's my main Problem right now and I've been searching for a solution for a month now. Please Help!
  12. Hello, I've made an Entity which should be noclip but instead of being inside of a block it is glitching to the Top of blocks. My Entity is using a Target system to go to its positions which works like the positioning system of the XP orb. Here is the Code of my Entity: http://pastebin.com/akYUhRDj And this is the Register code: Thank you for any Help. Busti
  13. Try to look for a NEI API in the official forum post. You dont need to decompile NEI for that.
  14. This seems to work well but it doesn't fix my noclip error (it is still glitching out of blocks)
  15. Which units does it use?
  16. this: EntityRegistry.registerModEntity(PipeXPOrb.class, "PipeXPOrb", 1, this, EntityID_PipeXPOrb, 5, false); EntityRegistry.registerGlobalEntityID(PipeXPOrb.class, "PipeXPOrb", EntityID_PipeXPOrb);
  17. Hello, when I spawn my Entity (which is basically an XP orb with noclip) it seems to ignore that it has noclip and will show up above the Block in which it should be. But this Problem only appears when I spawn it on the server. When I didn't register the Entity as Mod Entity (so that it doesn't Sync up to the server automatically) and spawn it on both sides everything seems to be normal except for the fact that it isn't respawning on the client when I load the world. When I spawn it only on the Client it won't glitch out of the block and it will run much more smoothly because its position logic is updated by the client. When I spawn it on both sides it will appear twice once inside the block and once outside of it because the server forces the client to render it. My question is now: How can I get either the positioning logic to work or send the information about the entity to the client to let the client update its position logic by itself? Here is a link to my code: http://pastebin.com/rNbFKnP5 I'm looking forward to any help. Busti
  18. You could just rotate your Texture Or (My way of doing this): public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving, ItemStack par6ItemStack) { int l = MathHelper.floor_double((double)(par5EntityLiving.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3; par1World.setBlockMetadataWithNotify(par2, par3, par4, l, 2); }
  19. There is already a Topic about it on ter minecraft Forums: http://www.minecraftforum.net/topic/1462935-making-a-mcmodinfo-file/
  20. Maybe the source of SingleplayerCommands would be a good reference for you: https://github.com/simo415/spc
  21. Oh? I didn't knew about that. But that wouldn't work with a longer Range.
  22. Try to search with a TileEntity for the Players within AABB like for example the beacon does an then make an Iterator to go through the player list and get their current health. Here is what I put together for you: AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox(this.xCoord, this.yCoord+1, this.zCoord, this.xCoord+1, this.yCoord+3, this.zCoord+1); entityList = this.worldObj.getEntitiesWithinAABB(EntityPlayer.class, axisalignedbb); Iterator iterator = entityList.iterator(); EntityPlayer entity; while (iterator.hasNext()) { entity = iterator.next(); if (entity.getHealth < 5) { //DO Your stuff } } this should work for you.
  23. When I add this do I need this code too? EntityRegistry.registerGlobalEntityID(PipeXPOrb.class, "PipeXPOrb", EntityRegistry.findGlobalUniqueEntityId());
  24. I'am just replying to keep this thread alive since my problem isn't fixed yet and the server were unstable the last weeks.
  25. Hello, I created a new XP orb, but it isn't reloading correctly. It seems to only reload on the server when i reopen the World but not on the client, what makes it invisible. What can I do to make it work correctly? Here is my Code: http://pastebin.com/wW4vqzkY Thanks Busti
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.