added glowframe receipe since no more squids spawn
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 3m17s

This commit is contained in:
Your Name
2025-07-23 12:21:20 +02:00
parent 8e902aa251
commit 95e0d03d28
6 changed files with 17 additions and 2 deletions

View File

@@ -13,4 +13,4 @@ TO RELEASE: ignorevote command
TO RELEASE: waterbottle + sponge = empty bottle -> Warum nochmal? TO RELEASE: waterbottle + sponge = empty bottle -> Warum nochmal?
TO RELEASE: Autocrafter TO RELEASE: Autocrafter
TO RELEASE: jukeboxes können mit Redstone gesteuert werden + crafted music TO RELEASE: jukeboxes können mit Redstone gesteuert werden + crafted music
TO RELEASE: Squids won't spawn TO RELEASE: Squids won't spawn + GLOWSTONE DUST für Rahmen

View File

@@ -1,2 +1,2 @@
Command: /opt/homebrew/Cellar/openjdk/23.0.2/libexec/openjdk.jdk/Contents/Home/bin/java -Xmx1G -classpath /Users/janik/.gradle/caches/modules-2/files-2.1/net.fabricmc/tiny-remapper/0.11.1/6c1f29838864ba8f495855edfc8ef17706fedb5d/tiny-remapper-0.11.1-fat.jar net.fabricmc.tinyremapper.Main /Users/janik/Desktop/MCPlugins/environmentex-1.0-SNAPSHOT.jar /Users/janik/Desktop/MCPlugins/environmentex/build/libs/environmentex-1.0-SNAPSHOT-reobf.jar /Users/janik/Desktop/MCPlugins/environmentex/.gradle/caches/paperweight/taskCache/reobfMappings.tiny mojang spigot /Users/janik/Desktop/MCPlugins/environmentex/.gradle/caches/paperweight/taskCache/mappedServerJar.jar --threads=1 Command: /opt/homebrew/Cellar/openjdk/23.0.2/libexec/openjdk.jdk/Contents/Home/bin/java -Xmx1G -classpath /Users/janik/.gradle/caches/modules-2/files-2.1/net.fabricmc/tiny-remapper/0.11.1/6c1f29838864ba8f495855edfc8ef17706fedb5d/tiny-remapper-0.11.1-fat.jar net.fabricmc.tinyremapper.Main /Users/janik/Desktop/MCPlugins/environmentex-1.0-SNAPSHOT.jar /Users/janik/Desktop/MCPlugins/environmentex/build/libs/environmentex-1.0-SNAPSHOT-reobf.jar /Users/janik/Desktop/MCPlugins/environmentex/.gradle/caches/paperweight/taskCache/reobfMappings.tiny mojang spigot /Users/janik/Desktop/MCPlugins/environmentex/.gradle/caches/paperweight/taskCache/mappedServerJar.jar --threads=1
[INFO] Finished after 844,07 ms. [INFO] Finished after 1350,93 ms.

View File

@@ -30,6 +30,10 @@ public class SquidPrevention implements Listener {
sr.getResult().getType() == Material.WRITABLE_BOOK) { sr.getResult().getType() == Material.WRITABLE_BOOK) {
it.remove(); // remove the default Book and Quill recipe it.remove(); // remove the default Book and Quill recipe
} }
if (recipe instanceof ShapelessRecipe sr &&
sr.getResult().getType() == Material.GLOW_ITEM_FRAME) {
it.remove(); // remove the default Book and Quill recipe
}
} }
} }
@@ -57,5 +61,16 @@ public class SquidPrevention implements Listener {
Bukkit.addRecipe(blackcustomRecipe); Bukkit.addRecipe(blackcustomRecipe);
ItemStack glow_frame = new ItemStack(Material.GLOW_ITEM_FRAME);
ShapelessRecipe glow_framecustomRecipe = new ShapelessRecipe(
new NamespacedKey("environmentex", "custom_glow_frame"),
glow_frame);
glow_framecustomRecipe.addIngredient(Material.GLOWSTONE_DUST);
glow_framecustomRecipe.addIngredient(Material.ITEM_FRAME);
Bukkit.addRecipe(glow_framecustomRecipe);
} }
} }