mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-30 01:34:04 +00:00
- Derive initial chunk and marker populations from stable location seeds. - Persist initial spawn completion after region-owned application. - Seed entity loot and attribute modifier identities. - Cover spawning, reload completion, and registry fixtures with regression tests.
25 lines
1.5 KiB
JavaScript
25 lines
1.5 KiB
JavaScript
export default {
|
|
name: 'iris-seeded-entities',
|
|
description: 'Replay initial chunk and marker populations in reversed order, comparing positions and complete equipment data.',
|
|
async run(context) {
|
|
const command = async (operation, expected, timeoutMs) => {
|
|
const response = await context.command(`/irisspawnqa ${operation}`, /SPAWN_QA_[A-Z]+(?:\s|$)/, timeoutMs)
|
|
context.expect(response.includes(expected) && !response.includes('SPAWN_QA_FAILED'), response)
|
|
}
|
|
await context.step('prepare a controlled Iris world', async () => {
|
|
await command('setup', 'SPAWN_QA_SETUP', 180000)
|
|
})
|
|
await context.step('replay initial mobs despite unrelated randomness and live spawn restrictions', async () => {
|
|
await command('seeded', 'SPAWN_QA_SEEDED chunks=2 markers=2 repeats=2 equipment=true attributes=true', 60000)
|
|
await context.waitUntil(() => Object.values(context.bot.entities).some(entity => entity.name === 'zombie' || entity.name === 'husk'), {
|
|
label: 'Generated mobs reached the client', timeoutMs: 10000, intervalMs: 100
|
|
})
|
|
context.report.seededEntities = { chunks: 2, markers: 2, repeats: 2, positions: true, equipmentBytes: true, attributeIds: true }
|
|
})
|
|
await context.step('retry a skipped initial pass and persist completion once', async () => {
|
|
await command('completion', 'SPAWN_QA_COMPLETION retry=true callbacks=1 persisted=true owned=true', 30000)
|
|
context.report.seededEntities.completionRetry = true
|
|
})
|
|
}
|
|
}
|