Skip to main content

Instant Spawn

Spawns a batch of mobs at once at the specified tick.

Fields​

FieldTypeDescription
typeStringFixed as htlib:once
settingSpawn SettingsSpawn-related settings (entity type, NBT, etc.)
spawn_countInteger / RangeNumber to spawn. Can be a fixed integer, or use minecraft:uniform to define a random range (see example)

Example​

{
"type": "htlib:once",
"setting": {
"entity_type": "minecraft:creeper",
"nbt": {
"ExplosionRadius": 3,
"Fuse": 50,
"powered": 1
}
},
"spawn_count": {
"type": "minecraft:uniform",
"value": {
"min_inclusive": 3,
"max_inclusive": 5
}
}
}