From f9d34d185bb6400c428752dec0c82f6588848af4 Mon Sep 17 00:00:00 2001 From: ItzFlip Date: Thu, 26 Dec 2024 18:58:17 -0500 Subject: [PATCH 1/3] fix: allow cherry leaves to be directional --- src/main/java/com/georgev22/particle/ParticleEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/georgev22/particle/ParticleEffect.java b/src/main/java/com/georgev22/particle/ParticleEffect.java index f542043..e8b8187 100644 --- a/src/main/java/com/georgev22/particle/ParticleEffect.java +++ b/src/main/java/com/georgev22/particle/ParticleEffect.java @@ -310,7 +310,7 @@ public enum ParticleEffect { *
  • Speed value: Doesn't influence the particle.
  • * */ - CHERRY_LEAVES(version -> version < 19.4 ? "NONE" : version < 20 ? "falling_cherry_leaves" : "cherry_leaves"), + CHERRY_LEAVES(version -> version < 19.4 ? "NONE" : version < 20 ? "falling_cherry_leaves" : "cherry_leaves", DIRECTIONAL), /** * In vanilla, this particle is displayed when an entity dies. *

    From 6921ee7aac704efb21655b694a88bdd1ea285542 Mon Sep 17 00:00:00 2001 From: ItzFlip Date: Thu, 26 Dec 2024 18:59:07 -0500 Subject: [PATCH 2/3] fix: update min value for TrailParticleOption and add Pale Oak Leaves particle type --- .../java/com/georgev22/particle/ParticleEffect.java | 11 +++++++++++ src/main/resources/mappings.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/georgev22/particle/ParticleEffect.java b/src/main/java/com/georgev22/particle/ParticleEffect.java index e8b8187..8659ff9 100644 --- a/src/main/java/com/georgev22/particle/ParticleEffect.java +++ b/src/main/java/com/georgev22/particle/ParticleEffect.java @@ -903,6 +903,17 @@ public enum ParticleEffect { * */ OMINOUS_SPAWNING(version -> version < 20.5 ? "NONE" : "ominous_spawning", DIRECTIONAL), + /** + * In vanilla, this particle is displayed falling off pale oak leaves + * in pale garden biomes. + *

    + * Information: + *

    + */ + PALE_OAK_LEAVES(version -> version < 21.4 ? "NONE" : "pale_oak_leaves", DIRECTIONAL), /** * In vanilla, this particle is randomly displayed by nether * portal, endermen, ender chests, dragon eggs, endermites and end diff --git a/src/main/resources/mappings.json b/src/main/resources/mappings.json index 27a6132..e34498c 100644 --- a/src/main/resources/mappings.json +++ b/src/main/resources/mappings.json @@ -344,7 +344,7 @@ }, { "name": "TrailParticleOption", - "min": 19, + "min": 21.3, "max": 99, "mappings": [ { From a58d7474ca3d823ae295cb3e2838357156a90118 Mon Sep 17 00:00:00 2001 From: ItzFlip Date: Thu, 26 Dec 2024 19:02:16 -0500 Subject: [PATCH 3/3] feat: add PALE_OAK_LEAVES to ParticleEffect documentation --- src/main/java/com/georgev22/particle/ParticleEffect.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/georgev22/particle/ParticleEffect.java b/src/main/java/com/georgev22/particle/ParticleEffect.java index 8659ff9..0199bf5 100644 --- a/src/main/java/com/georgev22/particle/ParticleEffect.java +++ b/src/main/java/com/georgev22/particle/ParticleEffect.java @@ -115,6 +115,7 @@ *
  • {@link #NAUTILUS}
  • *
  • {@link #NOTE}
  • *
  • {@link #OMINOUS_SPAWNING}
  • + *
  • {@link #PALE_OAK_LEAVES}
  • *
  • {@link #PORTAL}
  • *
  • {@link #RAID_OMEN}
  • *
  • {@link #REDSTONE}