From c08f9cfa68590fb2a9c25f937cd57335756b1274 Mon Sep 17 00:00:00 2001 From: direwolf20 <39863894+Direwolf20-MC@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:47:36 -0400 Subject: [PATCH] Add 'Arrows' tag to JustDireArrow - to allow power to work - resolves #180 --- .../.cache/7e4928c403af173c11f4d1675461c34bf5d23056 | 3 ++- .../resources/data/minecraft/tags/entity_type/arrows.json | 5 +++++ .../justdirethings/datagen/JustDireEntityTags.java | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/generated/resources/data/minecraft/tags/entity_type/arrows.json diff --git a/src/generated/resources/.cache/7e4928c403af173c11f4d1675461c34bf5d23056 b/src/generated/resources/.cache/7e4928c403af173c11f4d1675461c34bf5d23056 index 550ae95b..65eeb096 100644 --- a/src/generated/resources/.cache/7e4928c403af173c11f4d1675461c34bf5d23056 +++ b/src/generated/resources/.cache/7e4928c403af173c11f4d1675461c34bf5d23056 @@ -1,7 +1,8 @@ -// 1.21.1 2024-09-01T15:10:37.7209125 Tags for minecraft:entity_type mod id justdirethings +// 1.21.1 2024-09-25T19:43:29.0537222 Tags for minecraft:entity_type mod id justdirethings b7ee8eaecff151e619b9a22ecae620a5b3ce15a0 data/c/tags/entity_type/teleporting_not_supported.json e00f2931577049b9a4400a87ed9c249373be376c data/justdirethings/tags/entity_type/creature_catcher_deny.json 669025814936e708d42d9d0a5b88c11e62cf12ef data/justdirethings/tags/entity_type/no_ai_deny.json 669025814936e708d42d9d0a5b88c11e62cf12ef data/justdirethings/tags/entity_type/no_earthquake.json b7ee8eaecff151e619b9a22ecae620a5b3ce15a0 data/justdirethings/tags/entity_type/paradox_absorb_deny.json b7ee8eaecff151e619b9a22ecae620a5b3ce15a0 data/justdirethings/tags/entity_type/paradox_deny.json +6a890ea62d03cc1110fa8d1fe5a0669082d9d96b data/minecraft/tags/entity_type/arrows.json diff --git a/src/generated/resources/data/minecraft/tags/entity_type/arrows.json b/src/generated/resources/data/minecraft/tags/entity_type/arrows.json new file mode 100644 index 00000000..7b696943 --- /dev/null +++ b/src/generated/resources/data/minecraft/tags/entity_type/arrows.json @@ -0,0 +1,5 @@ +{ + "values": [ + "justdirethings:justdirearrow" + ] +} \ No newline at end of file diff --git a/src/main/java/com/direwolf20/justdirethings/datagen/JustDireEntityTags.java b/src/main/java/com/direwolf20/justdirethings/datagen/JustDireEntityTags.java index b2ac9d8f..c55efd8b 100644 --- a/src/main/java/com/direwolf20/justdirethings/datagen/JustDireEntityTags.java +++ b/src/main/java/com/direwolf20/justdirethings/datagen/JustDireEntityTags.java @@ -7,6 +7,7 @@ import net.minecraft.data.PackOutput; import net.minecraft.data.tags.EntityTypeTagsProvider; import net.minecraft.resources.ResourceLocation; +import net.minecraft.tags.EntityTypeTags; import net.minecraft.tags.TagKey; import net.minecraft.world.entity.EntityType; import net.neoforged.neoforge.common.Tags; @@ -47,5 +48,7 @@ public void addTags(HolderLookup.Provider lookupProvider) { tag(PARADOX_ABSORB_DENY) .add(Registration.TimeWandEntity.get()) .add(Registration.ParadoxEntity.get()); + tag(EntityTypeTags.ARROWS) + .add(Registration.JustDireArrow.get()); } }