1.21.9
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.21.8
|
||||
yarn_mappings=1.21.8+build.1
|
||||
minecraft_version=1.21.9
|
||||
yarn_mappings=1.21.9+build.1
|
||||
loader_version=0.17.2
|
||||
# Mod Properties
|
||||
mod_version=1.0
|
||||
mod_version=1.1
|
||||
maven_group=com.kasetoatz
|
||||
archives_base_name=fastghast
|
||||
# Dependencies
|
||||
# check this on https://modmuss50.me/fabric.html
|
||||
fabric_version=0.132.0+1.21.8
|
||||
fabric_version=0.133.14+1.21.9
|
||||
|
||||
@@ -16,13 +16,11 @@ public class Fastghast implements ModInitializer
|
||||
public void onInitialize()
|
||||
{
|
||||
load();
|
||||
ServerTickEvents.END_SERVER_TICK.register((server) -> {
|
||||
server.getWorlds().forEach(world -> world.iterateEntities().forEach(entity -> {
|
||||
ServerTickEvents.END_SERVER_TICK.register((server) -> server.getWorlds().forEach(world -> world.iterateEntities().forEach(entity -> {
|
||||
if (entity instanceof Leashable leashed && leashed.isLeashed() && leashed.getLeashHolder() instanceof HappyGhastEntity ghast && leashed.getDistanceToCenter(ghast) > 8)
|
||||
{
|
||||
entity.teleport(world, ghast.getX(), ghast.getY(), ghast.getZ(), EnumSet.noneOf(PositionFlag.class), entity.getYaw(), entity.getPitch(), false);
|
||||
}
|
||||
}));
|
||||
});
|
||||
})));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user