Jump to content

meshocky

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

meshocky's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. You should be able to find it when you expand the forge folder in eclipse, then the "forgeSrc-1.7.2-xx.xx.x.xxxx.jar" drop down should show you all the files in the source, for specific locations such as blocks, its under net - minecraft - block etc. Hope this helps, it should all be there
  2. Hey all, not sure if this is a bug. However whilst using 1.7 for particles, for some bizarre reason it spawns the particles fine, and then does it identical like 3 blocks below my player. It seems to be the same with all the particles I create. The problem however is probably somewhere in my code, however there is nothing to suggest it is... The item which spawns the particles: http://pastebin.com/DN8LkDUr The particleFX class: http://pastebin.com/gy76W9WJ (fairly similar to MC's ones, Im still learning the way they work, it all seems very confusing, expecially choosing which particle to display, even if its a default one) Thanks -meshocky
  3. Thanks heaps, turns out it was just that divide sign that did it , I also managed to work out how to add and EntityFX so thats all good now.. If you don't mind me asking, where did you learn the concepts for the maths used in the rotation, just off the internet, I've found a couple of good books on game mathematics... Thanks so much -meshocky
  4. Alright well I tried creating a new ParticleFX and all.... public class EntityParticleFX { public static EntityFX whirlwindFX; public static void init() { Minecraft.getMinecraft().effectRenderer.addEffect(whirlwindFX); } } Then in the main class for the mod I called it... then in the item I tried to call it however I added a few more arguments... world.spawnParticle("EntityWhirlwindDustFX", world, randPosX, randPosY, randPosZ, 0.0D, 0.0D, 0.0D, entPosX, entPosY, entPosZ, 0.5f); The code button here isnt working so here is a pastebin of my new entityFXclass its just the hearts fx class but copied over, and then I tried some maths to rotate the particles, but when I used the spawnEntity method, they where kind of spinning but around a much smaller circle and they were spazzing out every tick... http://pastebin.com/w56wRbx4 Sorry for this long winded response, Im still getting to grips with forge, and also programming in general. Thanks again though -meshocky
  5. Thanks ill check that out, once i've made a new ParticleFX class how do I call that in the spawnParticle method as it requires a string, or should I use spawnEntity? Edit: SpawnEntity worked and is now spawning little white cubes thanks Thanks
  6. Hi all, first post so hopefully everything goes well. Im looking into creating an item which creates a tornado like effect around the player, I have managed to spawn the particles, my only issue is getting the particles to move in around the player in a circle, like a tornado. I have looked into angular velocity and such as the spawn particle method takes in 3 velocity arguments for x, y, and z. world.spawnParticle("largesmoke", posX, posY, posZ, velocityX, velocityY, velocityZ); I am using the 1.7 gradle version of forge, however the concept should be universal. Thanks Meshocky
×
×
  • Create New...

Important Information

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