diff --git a/DataGenerator/src/main/java/net/minestom/datagen/DataGenType.java b/DataGenerator/src/main/java/net/minestom/datagen/DataGenType.java index 348f541..400e4e3 100644 --- a/DataGenerator/src/main/java/net/minestom/datagen/DataGenType.java +++ b/DataGenerator/src/main/java/net/minestom/datagen/DataGenType.java @@ -29,7 +29,6 @@ public enum DataGenType { SOUND_SOURCES("sound_sources", new SoundSourceGenerator()), VILLAGER_PROFESSIONS("villager_professions", new VillagerProfessionGenerator()), VILLAGER_TYPES("villager_types", new VillagerTypeGenerator()), -// COMPONENTS("components", new ComponentGenerator()), RECIPE_TYPE("recipe_types", new RecipeTypeGenerator()), BLOCK_TAGS("tags/block_tags", new BlockTagGenerator()), diff --git a/DataGenerator/src/main/java/net/minestom/generators/ParticleGenerator.java b/DataGenerator/src/main/java/net/minestom/generators/ParticleGenerator.java index d4a7ff9..028d052 100644 --- a/DataGenerator/src/main/java/net/minestom/generators/ParticleGenerator.java +++ b/DataGenerator/src/main/java/net/minestom/generators/ParticleGenerator.java @@ -1,6 +1,9 @@ package net.minestom.generators; import com.google.gson.JsonObject; +import net.minecraft.core.particles.ParticleType; +import net.minecraft.core.particles.ParticleTypes; +import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.core.registries.BuiltInRegistries; import net.minestom.datagen.DataGenerator; @@ -13,6 +16,7 @@ public JsonObject generate() { final var location = registry.getKey(particleType); JsonObject particle = new JsonObject(); particle.addProperty("id", registry.getId(particleType)); + particle.addProperty("hasData", !(particleType instanceof SimpleParticleType)); particles.add(location.toString(), particle); } return particles;