Skip to content

🎨 심미적 피드백 및 환경 음향

Agrarian Reform은 농업의 시각적, 청각적 피드백을 풍부하게 하여 농경지에 생동감을 불어넣습니다.


🌾 작물 통과 시 바스락거리는 환경음

플레이어나 엔티티가 다 자란 작물 사이를 지나가면 작물 바스락거림 사운드(SoundEvents.GRASS_HIT)가 재생됩니다:

java
if (isMaxAge && DynamicGameRuleManager.getBoolean(serverLevel, AgrarianGameRules.AMBIENT_CROP_RUSTLE)) {
    if (SoundHelper.shouldPlayRustle(entityId, time)) {
        if (entity.getDeltaMovement().horizontalDistance() > 0.01D) {
            float pitch = 0.8F + serverLevel.getRandom().nextFloat() * 0.4F;
            float volume = 0.2F + serverLevel.getRandom().nextFloat() * 0.1F;
            serverLevel.playSound(null, pos, SoundEvents.GRASS_HIT, SoundSource.BLOCKS, volume, pitch);
        }
    }
}
  • 음높이 변화: 단조로운 반복을 피하기 위해 음높이가 $0.8$에서 $1.2$ 사이에서 동적으로 변화합니다.
  • 재생 빈도 제어: SoundHelper가 엔티티별 재생 빈도를 제어하여 달릴 때 소리가 겹쳐 시끄러워지는 것을 방지합니다.

✨ 생명력 녹색 파티클

작물의 성장 단계가 올라가면 녹색 행복한 주민 파티클(ParticleTypes.HAPPY_VILLAGER)이 피어오릅니다:

  • 파티클 개수: 성장 이벤트당 3개.
  • 확산 범위: 블록 중심 기준 $0.25\text{m} \times 0.25\text{m} \times 0.25\text{m}$.
  • 게임 규칙 제어: /gamerule agrarian_reform:ambient_vitality_particles false로 비활성화 가능.

🌅 시각적 아침 이슬 효과

일출 시 경작지의 렌더링 색상이 미세하게 조정되어 아침 이슬이 맺힌 촉촉한 밭을 시각적으로 표현합니다.


See also: 경작지 내구성 및 짓밟기 보호 and 게임 규칙 (GameRules) 레퍼런스.

Official documentation & web portal for Dasik Igaijinn mods.