Jump to content

KritX01

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by KritX01

  1. I think you missed the point I don't want to create a wand, what i really want is to make a block (ore) that has a charging effect and it can electrify you when you try to mine it and I just want the shocking effect from thaumcraft Okay, well I'd give the same advice. Start with the basics. Okay, I'll assume you want something like the charging effect from the "node" in Thaumcraft. A node has a certain amount of charge and certain type of "focus" (type of charge). Also, the model / texture are animated. If you want that sort of thing (i.e. the charge can drain and there are different types of charge) then you will need to make it a TileEntity. So go ahead and create the custom block and tile entity, along with the fields you want (charge level, focus type and animation step), make sure those are saved and loaded via NBT, and make sure the tile entity is enabled to tick. You'll also need a field to identity the current target of the charge (i.e. which player it is charging in your case) Then in the update() method of the tile entity you can check for whether a player is close enough, set it as the charge target and start transfering charge. If you want the player itself to accumulate charge (instead of a staff or item that the player is carrying), then you would need to use IExtendedEntityProperties on the player to save the charge level. If you want it to look like a block (rather than floating pulsating energy like in Thaumcraft) then you'd just use the regular block state and block model system. If you want to animate it, just create a block state for the animation and a bunch of madels / textures and cycle through them. If you want to draw things that are more interesting, like the lightning that shoots out or the sphere that protects nodes, then you'll have to use GL code in the rendering events. I have an example of how to render a sphere here (look down the page to the "render a sphere" section: http://jabelarminecraft.blogspot.com/p/minecraft-forge-172-quick-tips-gl11-and.html For a lightning effect, lightning is just a set of small connected lines that are a bit random. So do web search on how to draw a line (or laser, a lot of people ask about lasers and it is similar idea). Then when you want to shoot lightning, you would create a list of coordinates that are a bit random along the line between the player and the ore, and draw lines connecting those up. You can alternatively create textures of lightning and apply those to a long skinny plane between the block and player. So that mean that I connot extend a block class to create that type of ore? Do I really need to make a TileEntity and give it a block model? Btw thanks for your support!
  2. I think you missed the point I don't want to create a wand, what i really want is to make a block (ore) that has a charging effect and it can electrify you when you try to mine it and I just want the shocking effect from thaumcraft
  3. I've done that but there's something in the code that says that it cannot create a generic hashmap.
  4. Hi, so I'm new to forge and I'm trying to learn as much as I can, if any of you have suggestions please let me know I have a question about the Thaumcraft shock wand or whatever it's called. So I would like to know how to make those kind of shock charges like in Thaumcraft. If any of you knows something please feel free to post here
  5. But how can i do it with a tessellator? BTW thanks, thats good for normal blocks!
  6. Hello, I would like to know if anyone knows how to do the alpha/faded texture in blocks like the stained glass from tinkers contruct or these jars from thaumcraft in the img bellow. I guess it's some kind of custom render... http://i.imgur.com/niYwZ.png Thanks a lot.
  7. I fix it! Thanks, I saw you image and i was using the eclipse folder as the workingspace and i switch it the the forge folder and its working now Thanks!
  8. I'm gonna try it again. And is Thaís some kind of bug with Windows 8?
  9. Which one did you download?
  10. It's very simple, I download the minecraft forge 1.7.2 version and then did the gradlew setupDecomWorkspace and the gradlew eclipse and it wont let me open the project
  11. I saw a video of a guy doing this o youtube: I did every thing like he did and i can't open the prodject. I btw sorry for that.
  12. When I try to open the minecraft project on Eclipse I get this error and I don't know what to do Can someone help me? [/img]
×
×
  • Create New...

Important Information

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