feat: more voice
This commit is contained in:
parent
e3cdc60d22
commit
7f49b0a84f
@ -247,10 +247,10 @@ class ProjectedPersonEntity(entityType: EntityType<out PathfinderMob>, level: Le
|
||||
return null
|
||||
}
|
||||
|
||||
override fun getSoundVolume() = super.getSoundVolume() * (random.nextFloat() * 0.5f + 0.6f)
|
||||
override fun getSoundVolume() = super.getSoundVolume() * (random.nextFloat() * 1.1f + 0.4f)
|
||||
|
||||
override fun getVoicePitch() = super.getVoicePitch() * (random.nextFloat() * 0.4f + 0.8f)
|
||||
override fun getVoicePitch() = super.getVoicePitch() * (random.nextFloat() * 0.55f + 0.7f)
|
||||
|
||||
override fun getAmbientSoundInterval() = -(160 + random.nextInt(1000 - 160))
|
||||
override fun getAmbientSoundInterval() = 60 - random.nextInt(850)
|
||||
|
||||
}
|
@ -39,11 +39,9 @@ data class SwarmProjectionEffect(
|
||||
level.random.nextInt(area.minY(), area.maxY()),
|
||||
level.random.nextInt(area.minZ(), area.maxZ()),
|
||||
)
|
||||
spawnPos = spawnPos.atY(level.getHeight(Heightmap.Types.WORLD_SURFACE, spawnPos.x, spawnPos.z))
|
||||
spawnPos = spawnPos.atY(level.getHeight(Heightmap.Types.WORLD_SURFACE, spawnPos.x, spawnPos.z)).above()
|
||||
if (level.getBlockState(spawnPos.below()).isAir)
|
||||
return
|
||||
if (!level.getBlockState(spawnPos).isAir)
|
||||
return
|
||||
ProjectedPersonEntity.entity.get().spawn(level, spawnPos, MobSpawnType.TRIGGERED)
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,41 @@
|
||||
"name": "entity.wandering_trader.yes",
|
||||
"weight": 3,
|
||||
"type": "event"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/1",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/2",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/3",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/3",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/4",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/5",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
},
|
||||
{
|
||||
"name": "quaedam:entity/projected_person/6",
|
||||
"weight": 1,
|
||||
"type": "file"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user