IMaterialDefinition

Link to imaterialdefinition

An IMaterialDefinition object represents a material definition in the game. A Material Definition is needed if you want to create a new block.

패키지 임포트하기

Link to 패키지-임포트하기

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import mods.contenttweaker.BlockMaterial;

Calling an IMaterialDefinition object

Link to calling-an-imaterialdefinition-object

You can get such an object using the Block Material Bracket Handler:
<blockmaterial:wood>

ZenGetters/ZenMethods without parameters

Link to zengetterszenmethods-without-parameters

ZenGetterZenMethod반환 타입
ZenGetter
blocksLight
ZenMethod
blocksLight()
반환 타입
bool
ZenGetter
blocksMovement
ZenMethod
blocksMovement()
반환 타입
bool
ZenGetter
canBurn
ZenMethod
getCanBurn()
반환 타입
bool
ZenGetter
mobilityFlag
ZenMethod
getMobilityFlag()
반환 타입
PushReaction
ZenGetter
liquid
ZenMethod
isLiquid()
반환 타입
bool
ZenGetter
opaque
ZenMethod
isOpaque()
반환 타입
bool
ZenGetter
replaceable
ZenMethod
isReplaceable()
반환 타입
bool
ZenGetter
solid
ZenMethod
isSolid()
반환 타입
bool
ZenGetter
toolNotRequired
ZenMethod
isToolNotRequired()
반환 타입
bool

Compare two BlockMaterials

Link to compare-two-blockmaterials

You can use the == operator to see if two MaterialDefinitions are equal

ZenScript
Copy
if(materialA == materialB)
    print("success!");