Skip to content

Commit

Permalink
SimpleEntityData - add new MC 1.20.3 entities (#6367)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed Feb 1, 2024
1 parent 3c5b45c commit 758e3f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/ch/njol/skript/entity/SimpleEntityData.java
Expand Up @@ -32,6 +32,7 @@
import org.bukkit.entity.Bat;
import org.bukkit.entity.Blaze;
import org.bukkit.entity.BlockDisplay;
import org.bukkit.entity.Breeze;
import org.bukkit.entity.Camel;
import org.bukkit.entity.CaveSpider;
import org.bukkit.entity.ChestedHorse;
Expand Down Expand Up @@ -130,6 +131,7 @@
import org.bukkit.entity.WanderingTrader;
import org.bukkit.entity.Warden;
import org.bukkit.entity.WaterMob;
import org.bukkit.entity.WindCharge;
import org.bukkit.entity.Witch;
import org.bukkit.entity.Wither;
import org.bukkit.entity.WitherSkeleton;
Expand Down Expand Up @@ -310,6 +312,11 @@ private static void addSuperEntity(String codeName, Class<? extends Entity> enti
addSuperEntity("display", Display.class);
}

if (Skript.isRunningMinecraft(1, 20, 3)) {
addSimpleEntity("breeze", Breeze.class);
addSimpleEntity("wind charge", WindCharge.class);
}

// Register zombie after Husk and Drowned to make sure both work
addSimpleEntity("zombie", Zombie.class);
// Register squid after glow squid to make sure both work
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/lang/default.lang
Expand Up @@ -1241,6 +1241,13 @@ entities:
text display:
name: text display¦s
pattern: text display(|1¦s)
# 1.20.3 Entities
breeze:
name: breeze¦s
pattern: breeze(|1¦s)
wind charge:
name: wind charge¦s
pattern: wind charge(|1¦s)

# -- Heal Reasons --
heal reasons:
Expand Down

0 comments on commit 758e3f9

Please sign in to comment.