Jump to content

Recommended Posts

Posted

Hey guys.


First of all i'd like to note that i do know java perfectly, i'm a software developer, so that's not an issue, but i am completly new to minecraft modding, and animations.

I've been reverse engeneering a few mods to figure out how they work, mostly simple stuff for now.

But i need some guidance, on particles and some effects.

I'm not necessarily building the exact the examples i'm gonna list, i just want to know how they work. I'm gonna keep it somewhat simple

For example, let's imagine i designed a custom staff on blockbench, and i want it to shoot a ray of light.

Let's not focus on the staff itself

How should i procede to do the ray of light?
The ray of light counts has particles? Or is it an animation of some kind? What sort of software do i use to create it?

-----------------------------------------------------------------------------------------------------------------------

Another Example, if anyone here used draconic evolution, then most of you guys know the energy core.

How could i procede to create a sphere animation like it?
Does it classify has the same type has the ray of light?

i'm completly lost on where to start with these sort of Particles/Animations.

Posted

The details of what you are asking are off topic for this forum.

This is a support forum for answering specific questions, not teaching or mod design advice.

 

For particles, look at the section named particles here: https://forge.gemwire.uk/wiki/Main_Page

How you draw them is up to you in the render() method of your Particle class.

For drawing a ray of light you might want to look at how vanilla does BeaconRenderer.renderBeaconBeam() or a mod like Botania's mana animation

Animations are done by changing data in the tick() method then referencing that in the render() method.

The base Particle class already has code for moving particles around using "physics". see Particle.tick()

 

The DE energy core is a BlockEntity which has a BlockEntityRenderer and client side ticking for doing custom rendering/animation.

See the previous link for topics on those.

 

If you are new to modding, I would suggest you start with simpler examples. Don't try to run until you can walk as the saying goes. 🙂 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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



×
×
  • Create New...

Important Information

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