9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-23 17:09:27 +00:00

Removed NMS, replaced illusioner with Dark Guardian

This commit is contained in:
Auxilor
2021-08-13 15:38:12 +01:00
parent 1918a46678
commit 7804cebd53
22 changed files with 13 additions and 335 deletions

View File

@@ -2,7 +2,6 @@ group 'com.willfp'
version rootProject.version
dependencies {
compileOnly project(":eco-core:core-proxy")
compileOnly 'org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT'
compileOnly 'commons-io:commons-io:2.8.0'
compileOnly 'com.destroystokyo.paper:paper-api:1.16.3-R0.1-SNAPSHOT'

View File

@@ -29,7 +29,7 @@ public class EcoBosses {
* Sets that exist by default.
*/
private static final List<String> DEFAULT_BOSSES = Arrays.asList(
"illusioner",
"dark_guardian",
"tarantula",
"steel_golem",
"alpha_wolf"

View File

@@ -1,7 +1,5 @@
package com.willfp.ecobosses.bosses.util.bosstype;
import com.willfp.ecobosses.proxy.util.CustomEntities;
import com.willfp.ecobosses.proxy.util.CustomEntity;
import lombok.experimental.UtilityClass;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.LivingEntity;
@@ -21,11 +19,7 @@ public class BossEntityUtils {
Class<? extends LivingEntity> type = (Class<? extends LivingEntity>) EntityType.valueOf(id.toUpperCase()).getEntityClass();
assert type != null;
return new VanillaBossType(type);
} catch (IllegalArgumentException e) {
Class<? extends CustomEntity<? extends LivingEntity>> proxy = CustomEntities.getEntityClass(id.toLowerCase());
if (proxy != null) {
return new CustomBossType(proxy);
}
} catch (IllegalArgumentException ignored) {
}
return null;

View File

@@ -1,29 +0,0 @@
package com.willfp.ecobosses.bosses.util.bosstype;
import com.willfp.ecobosses.EcoBossesPlugin;
import com.willfp.ecobosses.proxy.proxies.CustomEntitySpawnerProxy;
import com.willfp.ecobosses.proxy.util.CustomEntity;
import org.bukkit.Location;
import org.bukkit.entity.LivingEntity;
import org.jetbrains.annotations.NotNull;
class CustomBossType extends BossType {
/**
* The entity type.
*/
private final Class<? extends CustomEntity<? extends LivingEntity>> entityClass;
/**
* Create new vanilla boss type.
*
* @param entityClass The entity class.
*/
CustomBossType(@NotNull final Class<? extends CustomEntity<? extends LivingEntity>> entityClass) {
this.entityClass = entityClass;
}
@Override
public LivingEntity spawnBossEntity(@NotNull final Location location) {
return EcoBossesPlugin.getInstance().getProxy(CustomEntitySpawnerProxy.class).spawnCustomEntity(entityClass, location);
}
}

View File

@@ -1,7 +1,7 @@
enabled: true
name: "&fAlpha Wolf &7| &c%health%♥ &7| &e%time%" # Display name
base-mob: wolf # Any existing mob - custom_illusioner is also accepted (like in the old Illusioner plugin)
base-mob: wolf
bossbar:
enabled: true

View File

@@ -1,7 +1,7 @@
enabled: true
name: "&9Illusioner &7| &c%health%♥ &7| &e%time%" # Display name
base-mob: custom_illusioner # Any existing mob - custom_illusioner is also accepted (like in the old Illusioner plugin)
name: "&9Dark Guardian &7| &c%health%♥ &7| &e%time%" # Display name
base-mob: enderman
bossbar:
enabled: true
@@ -46,12 +46,12 @@ rewards:
broadcast:
spawn:
- ""
- "&fAn &9&lIllusioner&r&f has been spawned!"
- "&fA &9&lDark Guardian&r&f has been spawned!"
- "&fCome fight it at &9%x%&f, &9%y%&f, &9%z%&f!"
- ""
death:
- ""
- "&fThe &9&lIllusioner&r&f has been killed!"
- "&fThe &9&lDark Guardian&r&f has been killed!"
- "&fMost Damage:"
- "&f - &9%top%&f (%top_damage% Damage)"
- "&f - &9%second%&f (%second_damage% Damage)"
@@ -59,13 +59,13 @@ broadcast:
- ""
despawn:
- ""
- "&fYou ran out of time to kill the &9&lIllusioner&r&f!"
- "&fYou ran out of time to kill the &9&lDark Guardian&r&f!"
- ""
# Effects can be found on the wiki! https://ecobosses.willfp.com/
effects:
- "summon:evoker:10"
- "summon:vindicator:10"
- "summon:enderman:10"
- "shuffle-hotbar:10"
- "give-potion-effect:confusion:10:200:10"
- "give-potion-effect:blindness:1:40:20"
@@ -107,11 +107,13 @@ sounds:
spawn: # On spawn
- "entity_illusioner_mirror_move:100:0.5"
- "entity_wither_spawn:100:2"
- "entity_enderman_death:50:2"
death: # On death
- "entity_evoker_prepare_wololo:50:0.8"
- "entity_illusioner_prepare_blindness:50:1"
- "entity_wither_death:50:2"
- "entity_enderman_death:50:0.5"
despawn:
- "entity_ender_dragon_ambient:50:0.5"

View File

@@ -1,7 +1,7 @@
enabled: true
name: "&8Steel Golem &7| &c%health%♥ &7| &e%time%" # Display name
base-mob: iron_golem # Any existing mob - custom_illusioner is also accepted (like in the old Illusioner plugin)
base-mob: iron_golem
bossbar:
enabled: true

View File

@@ -1,7 +1,7 @@
enabled: true
name: "&4Tarantula &7| &c%health%♥ &7| &e%time%" # Display name
base-mob: cave_spider # Any existing mob - custom_illusioner is also accepted (like in the old Illusioner plugin)
base-mob: cave_spider
bossbar:
enabled: true