Jump to content

BuddingDev

Members
  • Posts

    237
  • Joined

  • Last visited

Everything posted by BuddingDev

  1. I can check a block's meta at the World class. Then is there any method that can be used at the block when meta is changed? I dont seem to find one.
  2. I can find those examples. Thanks! And by the way, what would you guys categorise particles? Is it an entity, or anything else?
  3. So should particles spawned on server or client? People say it should appear in server because Particles are Entities. People say it should appear in client because Particles are "cosmetic", not a great deal in the game. Which one is correct?
  4. Is there really a method not using GL11 or tesselator?
  5. I need help on how to tell Forge to look at my image sources for my particles.
  6. Also, how to force aparticle to be spawned whatever the situation?
  7. And, by the way, how do I register custom particles? Or simply put, how to make one?
  8. Found out that I noobedly call that function on server side... Need to deal with that for a bit... But can anyone explain that "velocity" part? The last 3 argument ofWorld#spawnParticle()?
  9. In the meantime, what does the code do? I mean, it spawns a particle at x, y, z, with speed...? I need help on that speed.
  10. I planned something like this in my TE: double x = entity.posX; double y = entity.posY; double z = entity.posZ; if (world.isRemote) { world.spawnParticle("happyVillager", xCoord, yCoord+1, zCoord, 0, 0, 0); world.spawnParticle("happyVillager", x, y, z, 0, 0, 0); }
  11. world.spawnParticle("happyVillager", xCoord, yCoord+1, zCoord, 0, 0, 0); it seems that my particle is not seen. (I allowed particles when debugging)
  12. I am starting to think of including sounds in my mod. Which class should I use to play sound? Or,is there a "manager" thingee that is required to play sounds?
  13. Like ("folder/subfolder/thatname"); ? So it is pointed to textures/blocks/folder/subfolder/thatname.png?
  14. So, do I use Block#setBlockTextureName()? Or any method that I possibly dont know?
  15. I am now facing another problem: I have planned so many textures and block states that depends on the TileEntity data values. I realise by placing all of those texture in the block folder, it can cause a great mess. So, my question is, is it possible to tell the game to search texture further nested in "textures/blocks/anotherSetOfBlock"? So I can organise them better?
  16. Yup. I bet the problem is solved thoroughly, I will take this as a template to build other TileEntities.
  17. So,I guess the following meaningless function brings back that nbt and ends this topic right? ThatPacket#func_148857_g();
  18. It seems that that 'data' parameter can be anything? So, in onDataPacket i will be catching back that nbt again... What about that "NetworkManager net"? Anything related to IMessage? Do I need to check if getDescriptionPacket() is executed in server?
  19. NBTTagCompound tag = new NBTTagCompound(); tag.setInteger("datum", this.datum); tag.setInteger("currentCooldown", this.currentCountdown); tag.setInteger("maxCountdown", this.maxCountdown); Alright. I have the code. And then? How to return a Packet in getDescriptionPacket?
  20. NetworkManager net, S35PacketUpdateTileEntity pkt I need help to understand these two arguments
  21. Any Idea how to do it simply?
  22. Looks complicated.... Ah, can I call a method from the client TE to the Server TE through World class?
  23. Weird, man, server said I have more datum points, but client responded with less. http://pastebin.com/29nVSykc Do I need any kind of syncing?
  24. Like, everything is reset when I rejoin world. "Datum" points get back to 0 instead of the value of the last load. EDIT: Now I got some debug outputs. It seems that NBT are read correctly, but somehow it is not properly processed in / into the TileENtity.
×
×
  • Create New...

Important Information

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