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!");