mirror of
https://github.com/SparklyPower/SparklyPaper.git
synced 2025-12-26 18:39:16 +00:00
Allow changing the tick rate of mob's "customServerAiStep"
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: MrPowerGamerBR <git@mrpowergamerbr.com>
|
||||
Date: Wed, 12 Jun 2024 11:53:27 -0300
|
||||
Subject: [PATCH] SPARKLYPOWER Add custom blocks
|
||||
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/MaterialTags.java b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||
index be212b4fbeabab32a4dab6ae554768c368efaa88..fc885e551b1e8393569ec1391ee3decdce8d7efb 100644
|
||||
--- a/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java
|
||||
@@ -83,6 +83,7 @@ public class MaterialTags {
|
||||
*/
|
||||
public static final MaterialSetTag CONCRETES = new MaterialSetTag(keyFor("concretes"))
|
||||
.endsWith("_CONCRETE")
|
||||
+ .notStartsWith("SPARKLYPOWER_") // SparklyPaper - custom blocks
|
||||
.ensureSize("CONCRETES", 16).lock();
|
||||
|
||||
/**
|
||||
@@ -161,6 +162,7 @@ public class MaterialTags {
|
||||
.endsWith("TERRACOTTA")
|
||||
.not(Material.TERRACOTTA)
|
||||
.notEndsWith("GLAZED_TERRACOTTA")
|
||||
+ .notStartsWith("SPARKLYPOWER_") // SparklyPaper - custom blocks
|
||||
.ensureSize("STAINED_TERRACOTTA", 16).lock();
|
||||
|
||||
/**
|
||||
@@ -168,6 +170,7 @@ public class MaterialTags {
|
||||
*/
|
||||
public static final MaterialSetTag TERRACOTTA = new MaterialSetTag(keyFor("terracotta"))
|
||||
.endsWith("TERRACOTTA")
|
||||
+ .notStartsWith("SPARKLYPOWER_") // SparklyPaper - custom blocks
|
||||
.ensureSize("TERRACOTTA", 33).lock();
|
||||
|
||||
/**
|
||||
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
||||
index 54704da43cf9c429f3914f0580246dde99aa93c0..04ba1fa0eea60a8f01c89942cc8f3f8250192a72 100644
|
||||
--- a/src/main/java/org/bukkit/Material.java
|
||||
+++ b/src/main/java/org/bukkit/Material.java
|
||||
@@ -3676,6 +3676,22 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
||||
BIG_DRIPLEAF_STEM(13167, Dripleaf.class),
|
||||
POTTED_AZALEA_BUSH(20430),
|
||||
POTTED_FLOWERING_AZALEA_BUSH(10609),
|
||||
+ // SparklyPaper start - SparklyPower Survival custom blocks
|
||||
+ // The IDs themselves doesn't have any correlation with anything, Spigot invented that for backwards compatibility
|
||||
+ SPARKLYPOWER_RAINBOW_WOOL(13003),
|
||||
+ SPARKLYPOWER_RAINBOW_CONCRETE(13004),
|
||||
+ SPARKLYPOWER_RAINBOW_TERRACOTTA(13005),
|
||||
+ SPARKLYPOWER_ASPHALT_SERVER(13006),
|
||||
+ /**
|
||||
+ * BlockData: {@link Slab}
|
||||
+ */
|
||||
+ SPARKLYPOWER_ASPHALT_SERVER_SLAB(13007, Slab.class),
|
||||
+ SPARKLYPOWER_ASPHALT_PLAYER(13008),
|
||||
+ /**
|
||||
+ * BlockData: {@link Slab}
|
||||
+ */
|
||||
+ SPARKLYPOWER_ASPHALT_PLAYER_SLAB(13009, Slab.class),
|
||||
+ // SparklyPaper end
|
||||
// ----- Legacy Separator -----
|
||||
@Deprecated
|
||||
LEGACY_AIR(0, 0),
|
||||
Reference in New Issue
Block a user