跳至主要內容

芒果凍布丁2026/7/28大約 2 分鐘

MaterialStatsBuilder

匠魂3原版部件

種類方法說明
近戰/採集工具
head(
  durability: int, // 耐久度
  meleeAttack: float, // 近戰傷害
  miningSpeed: float, // 挖掘速度
  miningTier: string // 挖掘等級
)
武器、工具頭部,如:鎬頭、小型斧刃、小型劍刃、牌板、錘頭、板斧刃、寬刃
handle(
  durability: int, // 耐久度
  meleeDamage: float, // 近戰傷害
  meleeSpeed: float, // 近戰攻擊速度
  miningSpeed: float, // 挖掘速度
)
手柄,如:工具手柄、堅韌手柄
binding()
綁定,如:綁定結、圓盤、大板
遠程工具
limb(
  accuracy: float, // 精準度
  drawSpeed: float, // 拉弓速度
  durability: int, // 耐久度
  veocity: float // 射速
)
弓臂
grip(
  accuracy: float, // 精準度
  durability: float, // 耐久度百分比
  meleeDamage: float // 近戰傷害
)
弓把
bowstring()
弓弦
盔甲
platingHelmet(
  armor: float, // 盔甲
  durability: int, // 耐久度
  toughness: float, // 盔甲強度
  knockbackResistance: float // 擊退抗性
)
鑲版頭盔
platingChestplate(
  armor: float, // 盔甲
  durability: int, // 耐久度
  toughness: float, // 盔甲強度
  knockbackResistance: float // 擊退抗性
)
鑲版胸甲
platingLeggings(
  armor: float, // 盔甲
  durability: int, // 耐久度
  toughness: float, // 盔甲強度
  knockbackResistance: float // 擊退抗性
)
鑲版護腿
platingBoots(
  armor: float, // 盔甲
  durability: int, // 耐久度
  toughness: float, // 盔甲強度
  knockbackResistance: float // 擊退抗性
)
鑲版靴子
platingShield(
  armor: float, // 盔甲
  durability: int, // 耐久度
  toughness: float, // 盔甲強度
  knockbackResistance: float // 擊退抗性
)
鑲版盾牌
maille()
鎖鏈基底
repairKit()
修補件,用於與其他工具合成恢復耐久度
skull(
  durability: int, // 耐久度
  armor: int, // 盔甲
)
頭顱

其他方法

方法說明
fullArmor(
  armor: float, // 盔甲
  durability: int, // 耐久度
  toughness: float, // 盔甲強度
  knockbackResistance: float // 擊退抗性
)
設置全套盔甲的屬性,會自動設置頭盔、胸甲、護腿、靴子、盾牌
part(
  partId: string, // 部件 ID
  data: map<string, object> // 部件屬性資料
)
設置部件的屬性資料
最近更新:
貢獻者: Evan Hsieh