multiple things
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 3m22s
All checks were successful
Gitea Actions Demo / Build-Gradle (push) Successful in 3m22s
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
gradle wrapper
|
||||
./gradlew clean build
|
||||
./rebuild.sh after git clone!
|
||||
|
||||
Open the Command Palette: Cmd+Shift+P
|
||||
• Developer: reload window
|
||||
@@ -13,4 +12,5 @@ IDEA: schere verschiedene versionen pferde/mule/cats/schafe/Axolotl/tropical etc
|
||||
TO RELEASE: ignorevote command
|
||||
TO RELEASE: waterbottle + sponge = empty bottle -> Warum nochmal?
|
||||
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
|
||||
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
#Wed Jul 02 13:32:02 CEST 2025
|
||||
#Sun Jul 20 15:58:26 CEST 2025
|
||||
gradle.version=8.14.2
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
#Sun Mar 09 01:37:27 CET 2025
|
||||
gradle.version=8.9
|
||||
#Sun Jul 20 16:03:35 CEST 2025
|
||||
gradle.version=8.14.2
|
||||
|
||||
49
chestex/build.gradle.kts
Executable file
49
chestex/build.gradle.kts
Executable file
@@ -0,0 +1,49 @@
|
||||
plugins {
|
||||
`java-library`
|
||||
id("io.papermc.paperweight.userdev") version "2.0.0-beta.14"
|
||||
id("xyz.jpenilla.run-paper") version "2.3.1" // Adds runServer and runMojangMappedServer tasks for testing
|
||||
}
|
||||
group = "de.hessj.chestex"
|
||||
version = "1.0-SNAPSHOT"
|
||||
description = "chestex"
|
||||
|
||||
tasks.withType<Jar> {
|
||||
destinationDirectory.set(file("../"))
|
||||
}
|
||||
|
||||
dependencies {
|
||||
//implementation(files("../craftbukkit.jar"))
|
||||
implementation(files("../helper-1.0-SNAPSHOT.jar"))
|
||||
paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")
|
||||
}
|
||||
|
||||
tasks {
|
||||
// Configure reobfJar to run when invoking the build task
|
||||
assemble {
|
||||
dependsOn(reobfJar)
|
||||
}
|
||||
|
||||
compileJava {
|
||||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
|
||||
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
||||
// See https://openjdk.java.net/jeps/247 for more information.
|
||||
options.release.set(21)
|
||||
}
|
||||
javadoc {
|
||||
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
}
|
||||
processResources {
|
||||
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
|
||||
val props = mapOf(
|
||||
"name" to project.name,
|
||||
"version" to project.version,
|
||||
"description" to project.description,
|
||||
"apiVersion" to "1.21"
|
||||
)
|
||||
inputs.properties(props)
|
||||
filesMatching("plugin.yml") {
|
||||
expand(props)
|
||||
}
|
||||
}
|
||||
}
|
||||
0
craftbukkit.jar
Executable file → Normal file
0
craftbukkit.jar
Executable file → Normal file
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
[INFO] Finished after 944,74 ms.
|
||||
[INFO] Finished after 844,07 ms.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -78,7 +78,8 @@ public class App extends JavaPlugin {
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
SquidPrevention.removeSquidReceipes();
|
||||
SquidPrevention.addCustomSquidRecipes();
|
||||
getServer().recipeIterator().forEachRemaining(recipe -> {
|
||||
if (recipe instanceof ShapelessRecipe) {
|
||||
ShapelessRecipe shapelessRecipe = (ShapelessRecipe) recipe;
|
||||
@@ -460,6 +461,7 @@ public class App extends JavaPlugin {
|
||||
pM.registerEvents(new BetterTotems(), this);
|
||||
pM.registerEvents(new CustomMusicDiscs(), this);
|
||||
pM.registerEvents(new PinFeature(), this);
|
||||
pM.registerEvents(new SquidPrevention(), this);
|
||||
getCommand("test").setExecutor(new EnvironmentExCommands());
|
||||
getCommand("y").setExecutor(new EnvironmentExCommands());
|
||||
getCommand("n").setExecutor(new EnvironmentExCommands());
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
package de.hessj.environmentex;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.entity.EntitySpawnEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.inventory.Recipe;
|
||||
import org.bukkit.inventory.RecipeChoice;
|
||||
import org.bukkit.inventory.ShapelessRecipe;
|
||||
|
||||
public class SquidPrevention implements Listener {
|
||||
@EventHandler
|
||||
public void onSquidSpawn(EntitySpawnEvent event) {
|
||||
if (event.getEntityType() == EntityType.SQUID || event.getEntityType() == EntityType.GLOW_SQUID) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
||||
public static void removeSquidReceipes() {
|
||||
Iterator<Recipe> it = Bukkit.recipeIterator();
|
||||
while (it.hasNext()) {
|
||||
Recipe recipe = it.next();
|
||||
if (recipe instanceof ShapelessRecipe sr &&
|
||||
sr.getResult().getType() == Material.WRITABLE_BOOK) {
|
||||
it.remove(); // remove the default Book and Quill recipe
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void addCustomSquidRecipes() {
|
||||
ItemStack bookAndQuill = new ItemStack(Material.WRITABLE_BOOK);
|
||||
|
||||
ShapelessRecipe customRecipe = new ShapelessRecipe(
|
||||
new NamespacedKey("environmentex", "custom_book_and_quill"),
|
||||
bookAndQuill);
|
||||
|
||||
customRecipe.addIngredient(Material.BOOK);
|
||||
customRecipe.addIngredient(Material.FEATHER);
|
||||
customRecipe.addIngredient(Material.BLACK_DYE);
|
||||
Bukkit.addRecipe(customRecipe);
|
||||
|
||||
ItemStack blackdye = new ItemStack(Material.BLACK_DYE);
|
||||
|
||||
ShapelessRecipe blackcustomRecipe = new ShapelessRecipe(
|
||||
new NamespacedKey("environmentex", "custom_black_dye"),
|
||||
blackdye);
|
||||
|
||||
// Use RecipeChoice.MaterialChoice for multiple options
|
||||
RecipeChoice choice = new RecipeChoice.MaterialChoice(Material.COAL, Material.CHARCOAL);
|
||||
blackcustomRecipe.addIngredient(choice);
|
||||
|
||||
Bukkit.addRecipe(blackcustomRecipe);
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
#Sun Jun 29 17:50:55 CEST 2025
|
||||
gradle.version=8.9
|
||||
#Sun Jul 20 15:55:06 CEST 2025
|
||||
gradle.version=8.14.2
|
||||
|
||||
@@ -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.10.4/d78e8e115ba5ac99421ce2d5e84e88b91a5f08b7/tiny-remapper-0.10.4-fat.jar net.fabricmc.tinyremapper.Main /Users/janik/Desktop/MCPlugins/helper-1.0-SNAPSHOT.jar /Users/janik/Desktop/MCPlugins/helper/build/libs/helper-1.0-SNAPSHOT-reobf.jar /Users/janik/Desktop/MCPlugins/helper/.gradle/caches/paperweight/taskCache/reobfMappings.tiny mojang spigot /Users/janik/Desktop/MCPlugins/helper/.gradle/caches/paperweight/taskCache/mappedServerJar.jar --threads=1
|
||||
Finished after 915,81 ms.
|
||||
Finished after 822,94 ms.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -68,6 +68,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.LEVER);
|
||||
interactableBlocks.add(Material.STONE_BUTTON);
|
||||
interactableBlocks.add(Material.OAK_BUTTON);
|
||||
interactableBlocks.add(Material.PALE_OAK_BUTTON);
|
||||
interactableBlocks.add(Material.BIRCH_BUTTON);
|
||||
interactableBlocks.add(Material.BAMBOO_BUTTON);
|
||||
interactableBlocks.add(Material.DARK_OAK_BUTTON);
|
||||
@@ -76,6 +77,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.ACACIA_BUTTON);
|
||||
interactableBlocks.add(Material.STONE_PRESSURE_PLATE);
|
||||
interactableBlocks.add(Material.OAK_PRESSURE_PLATE);
|
||||
interactableBlocks.add(Material.PALE_OAK_PRESSURE_PLATE);
|
||||
interactableBlocks.add(Material.BIRCH_PRESSURE_PLATE);
|
||||
interactableBlocks.add(Material.BAMBOO_PRESSURE_PLATE);
|
||||
interactableBlocks.add(Material.DARK_OAK_PRESSURE_PLATE);
|
||||
@@ -89,6 +91,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.REPEATER);
|
||||
interactableBlocks.add(Material.LECTERN);
|
||||
interactableBlocks.add(Material.OAK_DOOR);
|
||||
interactableBlocks.add(Material.PALE_OAK_DOOR);
|
||||
interactableBlocks.add(Material.BIRCH_DOOR);
|
||||
interactableBlocks.add(Material.BAMBOO_DOOR);
|
||||
interactableBlocks.add(Material.DARK_OAK_DOOR);
|
||||
@@ -96,6 +99,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.JUNGLE_DOOR);
|
||||
interactableBlocks.add(Material.ACACIA_DOOR);
|
||||
interactableBlocks.add(Material.OAK_TRAPDOOR);
|
||||
interactableBlocks.add(Material.PALE_OAK_TRAPDOOR);
|
||||
interactableBlocks.add(Material.BIRCH_TRAPDOOR);
|
||||
interactableBlocks.add(Material.BAMBOO_TRAPDOOR);
|
||||
interactableBlocks.add(Material.DARK_OAK_TRAPDOOR);
|
||||
@@ -103,6 +107,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.JUNGLE_TRAPDOOR);
|
||||
interactableBlocks.add(Material.ACACIA_TRAPDOOR);
|
||||
interactableBlocks.add(Material.OAK_FENCE_GATE);
|
||||
interactableBlocks.add(Material.PALE_OAK_FENCE_GATE);
|
||||
interactableBlocks.add(Material.BIRCH_FENCE_GATE);
|
||||
interactableBlocks.add(Material.BAMBOO_FENCE_GATE);
|
||||
interactableBlocks.add(Material.DARK_OAK_FENCE_GATE);
|
||||
@@ -115,6 +120,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.MINECART);
|
||||
interactableBlocks.add(Material.TNT_MINECART);
|
||||
interactableBlocks.add(Material.OAK_BOAT);
|
||||
interactableBlocks.add(Material.PALE_OAK_BOAT);
|
||||
interactableBlocks.add(Material.BIRCH_BOAT);
|
||||
interactableBlocks.add(Material.BAMBOO_RAFT);
|
||||
interactableBlocks.add(Material.DARK_OAK_BOAT);
|
||||
@@ -122,6 +128,7 @@ public class Helper {
|
||||
interactableBlocks.add(Material.JUNGLE_BOAT);
|
||||
interactableBlocks.add(Material.ACACIA_BOAT);
|
||||
interactableBlocks.add(Material.OAK_CHEST_BOAT);
|
||||
interactableBlocks.add(Material.PALE_OAK_CHEST_BOAT);
|
||||
interactableBlocks.add(Material.BIRCH_CHEST_BOAT);
|
||||
interactableBlocks.add(Material.BAMBOO_CHEST_RAFT);
|
||||
interactableBlocks.add(Material.DARK_OAK_CHEST_BOAT);
|
||||
|
||||
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
#Wed Mar 12 11:51:57 CET 2025
|
||||
gradle.version=8.9
|
||||
#Sun Jul 20 15:58:39 CEST 2025
|
||||
gradle.version=8.14.2
|
||||
|
||||
15
rebuild.sh
Executable file
15
rebuild.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
curr_folder=$(pwd)
|
||||
rm -rf *-SNAPSHOT.jar
|
||||
cd helper && gradle wrapper && ./gradlew clean build && gradle build
|
||||
cd $curr_folder
|
||||
cd betterhoppers && gradle wrapper && ./gradlew clean build && gradle build
|
||||
cd $curr_folder
|
||||
cd chestex && gradle wrapper && ./gradlew clean build && gradle build
|
||||
cd $curr_folder
|
||||
cd dailyquests && gradle wrapper && ./gradlew clean build && gradle build
|
||||
cd $curr_folder
|
||||
cd environmentex && gradle wrapper && ./gradlew clean build && gradle build
|
||||
cd $curr_folder
|
||||
cd pokeballs && gradle wrapper && ./gradlew clean build && gradle build
|
||||
cd $curr_folder
|
||||
Reference in New Issue
Block a user