Jump to content

Recommended Posts

Posted

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 ;)

If you like minecraft and you LP's and random stuff make sure to subscribe to my channel ;)https://www.youtube.com/KritX01

Posted

You can deobfuscate the Thaumcraft source using BON2 and view it's source using a Java decompiler like JD-Gui.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

If you're just starting learning to mod with Forge, I suggest you start by creating the staff item first. Create a new item, register it, get it a good model and good texture, get the crafting recipe working.

 

Thaumcraft is complicated because there is also "focus", "charging" and levels of the staff to deal with. If you want to implement each of those, then you'd make an instance int field for each and store that in the NBT.

 

After that, then it is a matter of just adding functionality when right-clicked, which would include testing the focus, level and charge, and adding functionality to change focus and recharge (this would simply be an update each tick to increase the value of the charge until it hits its limit).

 

But anyway, start simply -- just create a custom staff. Then you can make it fancy.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

If you're just starting learning to mod with Forge, I suggest you start by creating the staff item first. Create a new item, register it, get it a good model and good texture, get the crafting recipe working.

 

Thaumcraft is complicated because there is also "focus", "charging" and levels of the staff to deal with. If you want to implement each of those, then you'd make an instance int field for each and store that in the NBT.

 

After that, then it is a matter of just adding functionality when right-clicked, which would include testing the focus, level and charge, and adding functionality to change focus and recharge (this would simply be an update each tick to increase the value of the charge until it hits its limit).

 

But anyway, start simply -- just create a custom staff. Then you can make it fancy.

 

I think you missed the point xD 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 xD

If you like minecraft and you LP's and random stuff make sure to subscribe to my channel ;)https://www.youtube.com/KritX01

Posted

If you're just starting learning to mod with Forge, I suggest you start by creating the staff item first. Create a new item, register it, get it a good model and good texture, get the crafting recipe working.

 

Thaumcraft is complicated because there is also "focus", "charging" and levels of the staff to deal with. If you want to implement each of those, then you'd make an instance int field for each and store that in the NBT.

 

After that, then it is a matter of just adding functionality when right-clicked, which would include testing the focus, level and charge, and adding functionality to change focus and recharge (this would simply be an update each tick to increase the value of the charge until it hits its limit).

 

But anyway, start simply -- just create a custom staff. Then you can make it fancy.

 

I think you missed the point xD 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 xD

 

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.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

If you're just starting learning to mod with Forge, I suggest you start by creating the staff item first. Create a new item, register it, get it a good model and good texture, get the crafting recipe working.

 

Thaumcraft is complicated because there is also "focus", "charging" and levels of the staff to deal with. If you want to implement each of those, then you'd make an instance int field for each and store that in the NBT.

 

After that, then it is a matter of just adding functionality when right-clicked, which would include testing the focus, level and charge, and adding functionality to change focus and recharge (this would simply be an update each tick to increase the value of the charge until it hits its limit).

 

But anyway, start simply -- just create a custom staff. Then you can make it fancy.

 

I think you missed the point xD 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 xD

 

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!

If you like minecraft and you LP's and random stuff make sure to subscribe to my channel ;)https://www.youtube.com/KritX01

Posted

Yes, you'll have to create a TileEntity and follow jabelar's steps as he mentioned :)

I might be terribly wrong.. Like really, really wrong. But I'm just trying to help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I've tried the java version you linked to and got a new exit code of 127 Here is the new console log I also tried making sure that I had Java 8 selected with the version of Java 8 I already had installed and got the same exit code Here is the console log with that installation in case it has any differences I do notice both say 'Java checker returned some invalid data we don't understand:' followed by 'Minecraft might not start properly.' which could be some issues.  
    • Looking for unbeatable savings on Temu in 2025? Our exclusive Temu code [ald244107] is your key to unlocking a $100 OFF discount, plus much more! This verified promo code works for both new and existing customers, giving you up to 50% off your next order and even bigger savings on clearance items. With Temu coupon code [ald244107], you'll get a flat $100 discount on top of existing sales. First-time users can enjoy an extra 100% off select items, while returning shoppers automatically qualify for the $100 OFF when applying the code at checkout. Imagine saving up to 90% on your favorite products across the USA, Canada, UK, and many other countries! 🔥 Temu Coupon Highlights with Code [ald244107]:  * Temu New User Offer: Use ald244107 for 50% off your first order + $100 OFF.  * Temu Existing Customer Promo: Apply ald244107 to get an instant $100 OFF.  * Global Reach: Valid in the USA, UK, Canada, Germany, France, Japan, Chile, Colombia, Malaysia, Mexico, South Korea, Philippines, Saudi Arabia, Qatar, Pakistan, and more.  * Top 2025 Deal: Secure $200 OFF plus 100% bonus discounts with ald244107. Maximize Your Savings: Top Temu Deals for 2025 (Code: ald244107)  * ✅ Temu Memorial Day Sale: Save $100 with ald244107  * ✅ Temu First Order Special: Use ald244107 for 50% + $100 OFF  * ✅ Temu USA Exclusive: Get $100 off instantly with ald244107  * ✅ International Temu Codes: ald244107 works in Japan, Germany, Chile, and many others.  * ✅ Temu Reddit Discount: Enjoy $100 OFF for both new and old users.  * ✅ Temu Coupon Bundle 2025: Combine $100 OFF with up to 50% slash deals.  * ✅ 100% OFF Free Gift Code: Use ald244107 – no invitation needed!  * ✅ Temu Sign-Up Bonus: Instantly get a welcome $100 OFF.  * ✅ Free Temu Code for New Users: Apply ald244107 – no referral required.  * ✅ Temu Clearance Codes 2025: Use ald244107 for 85–100% discounts. This Temu code [ald244107] is more than just a discount; it's your ticket to free shipping, exclusive first-order deals, and stackable coupon bundles across electronics, fashion, home goods, and beauty products. You can truly unlock up to 90% OFF plus an additional $100 OFF on qualified orders. 💡 Pro Tip: Don't forget to apply ald244107 during checkout on the Temu app or website to activate your instant $100 discount, even if you’re a returning customer! Temu $100 OFF Code by Country (All Use ald244107):  * 🇺🇸 Temu USA – ald244107  * 🇯🇵 Temu Japan – ald244107  * 🇲🇽 Temu Mexico – ald244107  * 🇨🇱 Temu Chile – ald244107  * 🇨🇴 Temu Colombia – ald244107  * 🇲🇾 Temu Malaysia – ald244107  * 🇵🇭 Temu Philippines – ald244107  * 🇰🇷 Temu Korea – ald244107  * 🇵🇰 Temu Pakistan – ald244107  * 🇫🇮 Temu Finland – ald244107  * 🇸🇦 Temu Saudi Arabia – ald244107  * 🇶🇦 Temu Qatar – ald244107  * 🇫🇷 Temu France – ald244107  * 🇩🇪 Temu Germany – ald244107 Real Shoppers, Real Savings: User Reviews We love hearing about your experiences! Here’s what some happy shoppers are saying about using the Temu code [ald244107]:  * Alice W., USA ⭐️⭐️⭐️⭐️⭐️ (5/5) "Great experience! Temu's promo code {ald244107} saved me a lot on my first order. Highly recommend this offer!"  * James T., UK ⭐️⭐️⭐️⭐️ (4/5) "Very happy with the quality and prices on Temu. The $100 credits offer was a nice bonus using {ald244107}. Will shop again."  * Sara M., Canada ⭐️⭐️⭐️ (3/5) "Got some decent deals with the {ald244107} code, though shipping took a bit longer than expected. Overall satisfied with the credits."
    • Thank you so much! I didnt see it in the log😭😭  
    • So im completely new to modding in general, i have some experience in Behavior packs in minecraft bedrock and i would like to modify entities stats and attributes like in a behavior pack (health, damage, speed, xp drop...). The problem is that i cant find any information online on how to do that, and I have no clue on what to do and where to start. I am currently modding in 1.20.4 with IntelliJ if that helps. My final objective is to buff mobs health and damage (double it for exemple), but since there is no entity file anywhere i don't know how to change it... 😢
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
  • Topics

×
×
  • Create New...

Important Information

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