攻撃をチャージしていなかった時のダメージを0にしたい

コード(Skripthubにある例文?みたいなやつ)
on damage:
if attack cooldown of attacker < 1:
set damage to 0
send "Your hit was too weak! wait until your weapon is fully charged next time." to attacker
on damage:
if attack cooldown of attacker < 1:
set damage to 0
send "Your hit was too weak! wait until your weapon is fully charged next time." to attacker
内部エラーが出てattack cooldown of attackerが取得できません PRではattack cooldown of attackerを使うことはできないのでしょうか。
9 Replies
greed
greedOP3y ago
/viewer
tanoKun
tanoKun3y ago
java.lang.NoSuchMethodError: org.bukkit.entity.HumanEntity.getAttackCooldown() なんでversionあってないみたいですね 鯖のバージョンなんですか?
greed
greedOP3y ago
1.12.2です skript2.6.3です PlayerRealmsです
tanoKun
tanoKun3y ago
それです原因
yukkina
yukkina3y ago
1.12で2.6やもんなぁ、、
greed
greedOP3y ago
PRじゃむりですか?
tanoKun
tanoKun3y ago
ba-zyonn sagerebaiinodeha ?
tanoKun
tanoKun3y ago
無理っすね 中のコード見てどう動いてるかみましょう HumanEntity.getAttackCooldown() 野中
yukkina
yukkina3y ago
ほかの取得方法ないんかね そもそもアタッククールダウンって 何で管理されてるんや? playerのnbt? だとしたら多分取れるよね

Did you find this page helpful?