Skip to content

Commit 3a824e5

Browse files
committed
Enhance spawn settings, template and bump build
Add configurable spawn behaviors and limits: introduce select-new-limit, per-group spawn-naturally, height-range, require-block, and a global spawn-naturally and natural-spawn-rate setting. Update group2 to not spawn naturally and add spawn-naturally flag on a spawn group. Extend entity template with a MythicMobs note and group-spawn support for simultaneous rares. Adjust lang prefix to include reset formatting. Bump buildNumber to 1031 and update timestamp.
1 parent b39e2a7 commit 3a824e5

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

buildNumber.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#maven.buildNumber.plugin properties file
2-
#Fri Feb 27 03:54:39 CET 2026
3-
buildNumber=940
2+
#Fri Apr 24 21:26:31 CEST 2026
3+
buildNumber=1031

config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ spawn-chance: 25000
1313
# I found that 25000 works well for my own server.
1414
# (0.004%)
1515

16+
# When spawn-chance triggers, how many times should we attempt to select a rare that meets conditions?
17+
select-new-limit: 5
18+
1619
# Show in the console when/where a rare spawns.
1720
log-spawns: true
1821

@@ -48,17 +51,27 @@ spawn-groups:
4851
- DIAMOND:1:20
4952
- EMERALD:1-4:20
5053
specific-entities: []
54+
spawn-naturally: true # Should rares in this group spawn naturally, or only through hijacking spawns of other entities?
55+
height-range: 0,100 # Rares in this group will only spawn between these heights. 0,100 means they can spawn between y0 and y100.
56+
require-block: STONE,3 # Requires at least 1 STONE block within 3 blocks of the spawn location.
5157
group2: # All except "id" are optional
5258
id: group2
5359
shared-drops: [] # Drops can be empty to not include any shared at all.
5460
specific-entities:
5561
- ZOMBIE
5662
- SPIDER
63+
spawn-naturally: false # This group will only spawn when the spawn of one of the specific-entities is hijacked.
5764

5865
# Should rares be forced above ground?
5966
# Otherwise they can spawn in caves.
6067
spawn-above-ground: true
6168

69+
# Should rares spawn naturally, or only through hijacking spawns of other entities?
70+
spawn-naturally: true
71+
72+
# How often should rares spawn naturally, in ticks. 20 ticks = 1 second.
73+
natural-spawn-rate: 20
74+
6275
# Maximum distance away from players rares can spawn.
6376
# The upper limit of this setting depends on server settings.
6477
# -1 for unlimited range.
@@ -95,7 +108,7 @@ health-fix-cap: 7
95108
# Should we remove old removed rares from the world?
96109
remove-old-rares: false
97110

98-
# Items that all rares have a chance to drop
111+
# Items that all rares have a chance to drop.
99112
shared-drops:
100113
#- item:amount:chance
101114
#- material:amount

entities/template.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ nameplate:
3636
see-through: false # Glitches with shadows enabled.
3737
view-distance: 60
3838
offset: 0, 1.5, 0
39-
type: ZOMBIE # Can only be living entities.
39+
type: ZOMBIE # Can only be living entities. For MythicMobs start with "mythicmob:".
4040
health: 2000
4141
effects:
4242
# https://helpch.at/docs/1.21.1/org/bukkit/potion/PotionEffectType.html
@@ -103,6 +103,12 @@ bossbar:
103103
style: SEGMENTED_20 # https://helpch.at/docs/1.21.1/org/bukkit/boss/BarStyle.html
104104
distance: 50
105105

106+
# Spawn this entity with other rares. They will spawn at the same time and location.
107+
group-spawn:
108+
# rareId:amount
109+
# rareId:min-max
110+
- template:1-5 # Spawning the same rare is also possible, as these don't spawn additional ones.
111+
106112
### Misc
107113
hostile: true # If the mob is a passive/neutral mob, make it hostile towards players.
108114
ai: true

lang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# +------------------------------------------------------+ #
55
############################################################
66

7-
prefix: '&7[&6RareSpawns&7] '
7+
prefix: '&7[&6RareSpawns&7]&r '
88

99
poweritem:
1010
no-exist: '&cSorry, this item no longer exists.'

0 commit comments

Comments
 (0)