Minecraft Wiki
Advertisement
[편집 | 역사 | 캐시 제거]설명문서
Lua logo
이 틀은 모듈:Materials row을(를) 사용하는, 루아로 작성된 스크립트입니다.
자세히 알아보려면 루아 혹은 mw:Extension:Scribunto를 참조하십시오.

이 틀은 재료에 대한 재료적 특성을 포함하는 표의 한 행을 생성하는 데 사용된다.

사용법

매개변수는 첫번째 열에 표시되는 제목을 설정한다.

매개변수 {{{rgb}}}에는 쉼표(,)로 분리한 세가지 색의 값을 포함한다. 이 색은 셀과 문자열의 색을 지정한다. 이 색은 재료의 지도 색에 따라 설정되어야 한다. 설정하지 않으면 하얀색이 사용되며, 문자열은 "None"으로 표시된다.

특성

표에는 다음과 같은 특성이 포함된다. 1 이면 참, 0 이면 거짓으로 설정된다.

이름 서브 클래스만? 설명 기본값
{{{liquid}}} Yes 플레이어가 이 블록 속에서 수영할 수 있다. 0
{{{solid}}} Yes 블록에 의존하는 블록을 이 블록 위에 설치할 수 있다. 여러가지 구조물을 스폰할 때 고려된다. 1
{{{blocklight}}} Yes 이 블록은 통과하는 빛의 밝기를 줄인다. (대부분 완전히 막는다.) 1
{{{blockmove}}} Yes 이 블록을 통과해서 이동할 수 없다. 개체는 대부분 내부에 들어가면 질식한다. 1
{{{opaque}}} No 뒤쪽을 볼 수 없다. {{{blockmove}}}
{{{tool}}} No 드롭하려면 도구가 필요하다. 0
{{{burn}}} No 용암에서 불이 붙는다. 0
{{{replace}}} No 이 블록이 있는 곳에 다른 블록을 사용하면 대체된다. 0
{{{adventureExempt}}} No Minecraft 어디에서도 사용되지 않는 듯하며, 표에 표시되지 않는다. 이름은 MCP에서 왔다. 0

Subclasses can also be set using {{{subclass}}} for to change the defaults based on coded subclasses. Values include:

  • liquid
    • defaults {{{liquid}}} and {{{replace}}} to 1
    • defaults {{{blockmove}}} and {{{solid}}} to 0
    • defaults {{{piston}}} to "replace"
  • nonsolid
    • defaults {{{adventureExempt}}} to 1
    • defaults {{{solid}}}, {{{blocklight}}} and {{{blockmove}}} to 0
  • portal
    • defaults {{{solid}}}, {{{blocklight}}} and {{{blockmove}}} to 0
  • liquid
    • defaults {{{replace}}} to 1
    • defaults {{{solid}}}, {{{blocklight}}} and {{{blockmove}}} to 0
  • cobweb
    • defaults {{{blockmove}}} to 1

The parameter {{{piston}}} can be set to determine the interaction when a piston pushes the block. Options are as follows:

  • pushed - pushes the block, default
  • replace - breaks the block being pushed
  • blocked - stops the piston from extending

Code

The parameters generally correspond to the actual structure of the code. With reference to MCP 9.10:

  • {{{subclass}}} refers to actual subclasses of the Material class. Names mostly match, but "nonsolid" is MaterialLogic, while "cobweb" is the inline class used for the web material.
  • {{{liquid}}} refers to the isLiquid() method.
  • {{{solid}}} refers to the isSolid() method.
  • {{{blocklight}}} refers to the blocksLight() method.
  • {{{blockmove}}} refers to the blocksMovement() method.
  • {{{opaque}}} refers to the setTranslucent() and isOpaque() methods.
  • {{{tool}}} refers to the setRequiresTool() and isToolNotRequired() methods.
  • {{{burn}}} refers to the setBurning() and getCanBurn() methods.
  • {{{replace}}} refers to the setReplaceable() and isReplaceable() methods.
  • {{{adventureExempt}}} refers to the setAdventureModeExempt() method.
  • {{{piston}}} refers to the setNoPushMobility(), setImmovableMobility(), and getMaterialMobility() methods.

See also

Advertisement