From 0954ded67043e04a5d4e00375c2ed0230e21ebde Mon Sep 17 00:00:00 2001 From: doonv <58695417+doonv@users.noreply.github.com> Date: Tue, 29 Sep 2026 19:21:52 +0300 Subject: [PATCH 1/3] fix: hide `azimuth:ponder_coordinate` from creative tabs and recipe viewers Fixes: #2 --- CHANGELOG.md | 3 ++- src/main/java/com/cake/azimuth/Azimuth.java | 12 +++++++++++- .../data/c/tags/item/hidden_from_recipe_viewers.json | 6 ++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/data/c/tags/item/hidden_from_recipe_viewers.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c83bfc..f01265c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,4 +77,5 @@ # 1.21.1-1.4.9 - Removed Tracks+ incompatability since normal tracks is fine and they have the same ID, duh... -- Put the note in logs instead \ No newline at end of file +- Put the note in logs instead +- Hid the internal ponder coordinate block from the creative tabs and recipe viewers. \ No newline at end of file diff --git a/src/main/java/com/cake/azimuth/Azimuth.java b/src/main/java/com/cake/azimuth/Azimuth.java index 4068c6a..fe1c20d 100644 --- a/src/main/java/com/cake/azimuth/Azimuth.java +++ b/src/main/java/com/cake/azimuth/Azimuth.java @@ -4,7 +4,9 @@ import com.cake.azimuth.foundation.config.AzimuthConfigs; import com.mojang.logging.LogUtils; import com.simibubi.create.foundation.data.CreateRegistrate; +import net.minecraft.resources.ResourceKey; import net.minecraft.resources.ResourceLocation; +import net.minecraft.world.item.CreativeModeTab; import net.neoforged.bus.api.IEventBus; import net.neoforged.fml.ModContainer; import net.neoforged.fml.ModLoadingContext; @@ -16,7 +18,15 @@ public class Azimuth { public static final String MODID = "azimuth"; public static final Logger LOGGER = LogUtils.getLogger(); - public static final CreateRegistrate REGISTRATE = CreateRegistrate.create(MODID); + public static final CreateRegistrate REGISTRATE = createRegistrate(); + + private static CreateRegistrate createRegistrate() { + final CreateRegistrate registrate = CreateRegistrate.create(MODID); + // Registrate defaults every item it registers to the minecraft:search creative tab. Azimuth only + // registers internal stuff, so opting out of that default keeps it out of the creative menu. + registrate.defaultCreativeTab((ResourceKey) null); + return registrate; + } public Azimuth(final IEventBus modEventBus, final ModContainer modContainer) { REGISTRATE.registerEventListeners(modEventBus); diff --git a/src/main/resources/data/c/tags/item/hidden_from_recipe_viewers.json b/src/main/resources/data/c/tags/item/hidden_from_recipe_viewers.json new file mode 100644 index 0000000..2d5c553 --- /dev/null +++ b/src/main/resources/data/c/tags/item/hidden_from_recipe_viewers.json @@ -0,0 +1,6 @@ +{ + "replace": false, + "values": [ + "azimuth:ponder_coordinate" + ] +} From 9cf3c1bf2b9c5a5c5e126bef343e00e8b175512c Mon Sep 17 00:00:00 2001 From: Cake <65340665+cakeGit@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:19:23 +0100 Subject: [PATCH 2/3] Cleaner set default creative tab null --- src/main/java/com/cake/azimuth/Azimuth.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/cake/azimuth/Azimuth.java b/src/main/java/com/cake/azimuth/Azimuth.java index fe1c20d..08f6ff1 100644 --- a/src/main/java/com/cake/azimuth/Azimuth.java +++ b/src/main/java/com/cake/azimuth/Azimuth.java @@ -18,14 +18,10 @@ public class Azimuth { public static final String MODID = "azimuth"; public static final Logger LOGGER = LogUtils.getLogger(); - public static final CreateRegistrate REGISTRATE = createRegistrate(); - - private static CreateRegistrate createRegistrate() { - final CreateRegistrate registrate = CreateRegistrate.create(MODID); - // Registrate defaults every item it registers to the minecraft:search creative tab. Azimuth only - // registers internal stuff, so opting out of that default keeps it out of the creative menu. - registrate.defaultCreativeTab((ResourceKey) null); - return registrate; + public static final CreateRegistrate REGISTRATE = CreateRegistrate.create(MODID); + + static { + REGISTRATE.defaultCreativeTab((ResourceKey) null); } public Azimuth(final IEventBus modEventBus, final ModContainer modContainer) { From 9c9b6dfd14db0bbe93077ae53059231bcc2f8971 Mon Sep 17 00:00:00 2001 From: Cake <65340665+cakeGit@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:21:39 +0100 Subject: [PATCH 3/3] Update CHANGELOG for version 1.21.1-1.4.10 --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f01265c..116486e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,7 +56,6 @@ # 1.21.1-1.4.5 - Ensure synchronised PENDING_TYPE_PREDICATES field -- # 1.21.1-1.4.6 @@ -78,4 +77,8 @@ - Removed Tracks+ incompatability since normal tracks is fine and they have the same ID, duh... - Put the note in logs instead -- Hid the internal ponder coordinate block from the creative tabs and recipe viewers. \ No newline at end of file + +# 1.21.1-1.4.10 + +- Hid the internal ponder coordinate block from the creative tabs and recipe viewers. +- Updated licence in mod manifest.