Skip to content

CraftTweaker

TheIllusiveC4 edited this page Jun 26, 2018 · 1 revision

Early draft of documenting the CraftTweaker integration.

Example script:

val stone = <conmat:stone> This grabs the material "stone", change stone to any material you want to edit

stone.durabilityCore=99 Sets the durability factor for the "core" part of the stone material to 99

stone.durabilityPlates=99 ^Same as above for the "plates" part

stone.durabilityTrim=99 ^Same as above for the "trim" part

stone.modifier=99 Sets the durability modifier for the "plates" part to 99

stone.defense=20 Sets the total armor value for a set of armor pieces using the material to 20

stone.toughness=99 Sets the toughness for the "plates" part to 99