Skip to content

배터리 만들기

배터리 만들기

배터리는 전력을 저장하고, 전력이 부족할 때 기계를 보조하는 블록입니다.

타입은 STORAGE를 사용합니다.

예시: 기본 배터리 셀

blocks:
basic_battery_cell:
type: STORAGE
provider-id: basic_battery_cell
permission:
place: seoulenergy.place.storage.basic_battery_cell
use: seoulenergy.use.storage.basic_battery_cell
fallback:
material: RESPAWN_ANCHOR
name: "<yellow>기본 배터리 셀"
storage:
capacity: 10000
max-input: 200
max-output: 150
priority: 0

storage 필드

필드설명
capacity저장 가능한 최대 전력량입니다.
max-input1초에 충전할 수 있는 최대 전력량입니다.
max-output1초에 방전할 수 있는 최대 전력량입니다.
priority여러 배터리가 있을 때 우선 사용할 순서입니다. 높을수록 먼저 사용됩니다.

priority 기준

storage.priority는 숫자가 클수록 먼저 충전/방전에 참여합니다.

storage:
capacity: 10000
max-input: 200
max-output: 150
priority: 10

예를 들어 중요한 중앙 배터리는 priority: 100, 일반 배터리는 priority: 10, 보조 배터리는 priority: 0처럼 나눌 수 있습니다.

priority가 같으면 내부 위치 key 순서로 처리됩니다. 따라서 의도한 순서를 명확히 만들고 싶으면 같은 전력망의 배터리끼리는 priority 값을 다르게 주는 편이 좋습니다.

배터리는 전선을 대체하지 않습니다. 연결 거리를 늘리려면 RELAY 타입 블록을 사용해야 합니다.