# [1.10.2] Particle Wings

## Recommended Posts

So, I've decided to take on the task of attempting to make the player have wings made of smoke particles. I am planning on hard-coding all the points of the particles I want to show with their (x, y) positions relative to the center of the back, but then I'm going to need to rotate them about the z-axis (I think...) which I'm not quite sure how to do. I've been reading https://en.m.wikipedia.org/wiki/Rotation_matrix which is on Rotation Matrices and I think it may have something to do with this, but I'm not quite sure. I've only completed through Calc I and haven't taken Linear Algebra yet which is the class where I think I would learn this kinda thing. Should I just give up on this idea?

Also, I'm wondering how you get the player's body rotation. I know you can get the rotation of the head (player.getRotationYawHead()), but the rotation of the head and the body are often different.

I didn't really want to use OpenGL for this sort of thing, because I think it would look really cool to have the wings made of smoke particles, but if there's a way to accomplish the same sort of effect using OpenGL, I'm interested in hearing about it. Thank you for your help.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

##### Share on other sites

OpenGL is the rendering engine of Minecraft any type of rendering you do eventually traces back to OpenGL. There is a simple way to do rotations GLStateManager.rotate (angle, x, y, x). Honestly the easiest way would be to guess and check until you get the rotations correct, and i believe you can get the players rotation, but you may need reflection.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

## 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.

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

×   Pasted as rich text.   Restore formatting

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

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

×

• ### Posts

• public class FireDot extends MobEffect { public FireDot() { super(MobEffectCategory.HARMFUL, 0x660990); getLogger().info("Test Log 999994 "); } @Override public void applyEffectTick(LivingEntity entity, int amplifier) { if (entity instanceof LivingEntity) { entity.hurt(entity.damageSources().inFire(), 0.1F + amplifier); getLogger().info("Test Log 22333 : ") } } public boolean isDurationEffectTick(int duration, int amplifier) { int tickInterval = 2; return duration % tickInterval == 0; } } this is my custom MobEffect public class ModEffects { public static final DeferredRegister<MobEffect> MOB_EFFECTS = DeferredRegister.create(ForgeRegistries.MOB_EFFECTS, DoJiJoJu.MODID); public static final RegistryObject<MobEffect> FIRE_DOT = MOB_EFFECTS.register("fire_dot", FireDot::new); public static void register(IEventBus eventBus) {MOB_EFFECTS.register(eventBus);} } and I registed in Registry ModEffects.register(modEventBus); in my Main Class ((LivingEntity) this.target).addEffect(new MobEffectInstance(ModEffects.FIRE_DOT.get(), 100, 1)); getLogger().info("Test Log 888884 " + ModEffects.FIRE_DOT.get()); I add the Effect by this way and the `Log 888884` was printed but other Logs wasn't printed. The effect of MobEffectCategory.HARMFUL, 0x660990 was visible. but the hurt code wasn't work why It doesn't work? I tested in Creative mode and solo play Thank you
• could someone please explain to me why my game keeps crashing whenever I try to load a modpack Here's the crash report https://pastebin.com/HKhwHzN9
• Didn't work but the error is different i think The game crashed whilst unexpected error Error: java.lang.IllegalStateException: Config property is not linked yet  https://paste.ee/p/TUlYx
• Hey I want to Know how to make a custom stew I made it into a food item but it doesn't give the bowl when eaten and I want to make custom drinks without effects how would I go about doing this thanks allot

• ### Who's Online (See full list)

×

• #### Activity

×
• Create New...