Skip to content

Commit

Permalink
Add (some) 1.20.5 entities (#6632)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneBeee committed May 1, 2024
1 parent cf199c0 commit c28bd09
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
import org.bukkit.entity.Allay;
import org.bukkit.entity.Animals;
import org.bukkit.entity.AreaEffectCloud;
import org.bukkit.entity.Armadillo;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.Bat;
import org.bukkit.entity.Blaze;
import org.bukkit.entity.BlockDisplay;
import org.bukkit.entity.Bogged;
import org.bukkit.entity.Breeze;
import org.bukkit.entity.Camel;
import org.bukkit.entity.CaveSpider;
Expand Down Expand Up @@ -317,6 +319,11 @@ private static void addSuperEntity(String codeName, Class<? extends Entity> enti
addSimpleEntity("wind charge", WindCharge.class);
}

if (Skript.isRunningMinecraft(1,20,5)) {
addSimpleEntity("armadillo", Armadillo.class);
addSimpleEntity("bogged", Bogged.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
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,13 @@ entities:
wind charge:
name: wind charge¦s
pattern: wind charge(|1¦s)
# 1.20.5 Entities
armadillo:
name: armadillo¦s @an
pattern: <age> armadillo(|1¦s)|(4¦)armadillo (kid(|1¦s)|child(|1¦ren))
bogged:
name: bogged
pattern: bogged

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

0 comments on commit c28bd09

Please sign in to comment.