Skip to content

Commit

Permalink
feat: stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Dec 22, 2024
1 parent f46af89 commit 9bb86c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
import com.aetherteam.nitrogen.network.packet.SyncPacket;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.core.particles.ParticleType;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundSource;
import net.minecraft.util.ExtraCodecs;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.alchemy.Potions;
import net.minecraft.world.level.Level;
import net.zepalesque.redux.client.audio.ReduxSounds;
import net.zepalesque.redux.client.particle.ReduxParticles;
Expand Down Expand Up @@ -189,11 +192,13 @@ public void doAerjumpMovement(Player player, int jumpIndex) {
public static void spawnAerjumpParticles(Level level, double x, double y, double z) {
if (level != null) {
RandomSource random = level.getRandom();
double radius = 1.25D;
double height = 0.3 aD;
for (int i = 0; i < 12; i++) {
double x2 = x + (random.nextDouble() * 1.5) - (1.5 * 0.5D);
double y2 = y + (random.nextDouble() * 0.4D);
double z2 = z + (random.nextDouble() * 1.5) - (1.5 * 0.5D);
level.addParticle(ReduxParticles.SHINY_CLOUD, x2, y2, z2, 0.0D, random.nextDouble() * 0.03D, 0.0D);
double x2 = x + (random.nextDouble() * radius) - (radius * 0.5D);
double y2 = y + (random.nextDouble() * height);
double z2 = z + (random.nextDouble() * radius) - (radius * 0.5D);
level.addParticle(ParticleTypes.SMALL_GUST, x2, y2, z2, 0.0D, random.nextDouble() * -0.1D, 0.0D);
}
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9bb86c3

Please sign in to comment.