NBT
NBT 태그는 복잡한 데이터 구조를 나타내는 데 사용됩니다. 이것들은 일반적으로 마인크래프트에서 내부적으로 기계 및 개체 정보를 저장하는 데 사용됩니다. 이 튜토리얼에서는 간단한 NBT 태그 읽기 및 조작에 대해 알아보겠습니다.
첫 번째 단계로 독서대에 블록 판독기를 사용하고 NBT 데이터를 읽어 디스플레이 패널에서 시각화합니다.
다음으로 읽은 독서대 NBT 태그에서 책 하위 태그를 복합 태그로 읽고 시각화합니다.
As a final step, we will read the id field from this Book sub-tag. However, instead of starting from our last read sub-tag, we will start from the root, and apply an NBT Path expression. Such expressions are useful to get deeply nested NBT values. For example, applying the expression ”.root.child1.child2” on the NBT tag { root: { child1: { child2: ”some value” }}} will output ”some value”. More advanced features of NBT Path are described later in the advanced part of the manual.
최종 발전과제를 달성하려면 책/ID 필드를 선택하는 NBT 경로 표현식을 만들고 이를 독서대 태그에 적용하고 디스플레이 패널에서 시각화합니다.
출력: NBT
- NBT
- String
- NBT
- String
- NBT
- NBT