이 틀은 재료에 대한 재료적 특성을 포함하는 표의 한 행을 생성하는 데 사용된다.
사용법
매개변수는 첫번째 열에 표시되는 제목을 설정한다.
매개변수 {{{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"
- defaults
nonsolid
- defaults
{{{adventureExempt}}}
to 1 - defaults
{{{solid}}}
,{{{blocklight}}}
and{{{blockmove}}}
to 0
- defaults
portal
- defaults
{{{solid}}}
,{{{blocklight}}}
and{{{blockmove}}}
to 0
- defaults
liquid
- defaults
{{{replace}}}
to 1 - defaults
{{{solid}}}
,{{{blocklight}}}
and{{{blockmove}}}
to 0
- defaults
cobweb
- defaults
{{{blockmove}}}
to 1
- defaults
The parameter {{{piston}}}
can be set to determine the interaction when a piston pushes the block. Options are as follows:
pushed
- pushes the block, defaultreplace
- breaks the block being pushedblocked
- 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 theMaterial
class. Names mostly match, but "nonsolid" isMaterialLogic
, while "cobweb" is the inline class used for theweb
material.{{{liquid}}}
refers to theisLiquid()
method.{{{solid}}}
refers to theisSolid()
method.{{{blocklight}}}
refers to theblocksLight()
method.{{{blockmove}}}
refers to theblocksMovement()
method.{{{opaque}}}
refers to thesetTranslucent()
andisOpaque()
methods.{{{tool}}}
refers to thesetRequiresTool()
andisToolNotRequired()
methods.{{{burn}}}
refers to thesetBurning()
andgetCanBurn()
methods.{{{replace}}}
refers to thesetReplaceable()
andisReplaceable()
methods.{{{adventureExempt}}}
refers to thesetAdventureModeExempt()
method.{{{piston}}}
refers to thesetNoPushMobility()
,setImmovableMobility()
, andgetMaterialMobility()
methods.