採掘時の確率scriptsのキル時確率版の作成

以下のscriptsのキルした時版が作りたいです!! 『on break: event-block is diamond_ore chance of 20%: give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to player』 ネットを見て『on kill:』や『on death:』を使ってみましたが、動作せず…… どうすればいいかお願いします!!
19 Replies
月猫ch
月猫ch2y ago
on deathの時のコード見たいっす
unnnnnnnnnnn
unnnnnnnnnnn2y ago
動作しないじゃなくて、エラーを吐くでは?
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
event-blockの行消してto playerをto attackerに変えれば動くんやろな
CROW_VT
CROW_VTOP2y ago
動きました☆ありがとうございます! ………で次の質問になるんですけど、モブ指定ってどうやるんですかね?
月猫ch
月猫ch2y ago
具体的にどのモブを指定したいかによるなぁ(´・ω・`)
CROW_VT
CROW_VTOP2y ago
基本敵対モブになりますね クモとかゾンビとかスケルトンをしたいと思ってます
月猫ch
月猫ch2y ago
要するに 特定のモブを倒したら特定のアイテムドロップ がやりたいのかな
CROW_VT
CROW_VTOP2y ago
そうです‼️
月猫ch
月猫ch2y ago
倒すモブは バニラでいいの?
CROW_VT
CROW_VTOP2y ago
バニラで大丈夫なはずです‼️
月猫ch
月猫ch2y ago
なら
on death:
type of victim is zombie
on death:
type of victim is zombie
とかでいけると思う ちなコードを張るときは 『』とかじゃなくて ``` ここにコード!!!!!! ``` この形式で張ると見やすいやで
CROW_VT
CROW_VTOP2y ago
(*`・ω・)ゞ
on death:
type of victim is zombie
chance of 100%:
give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to attacker
on death:
type of victim is zombie
chance of 100%:
give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to attacker
これってミスってますか?
CROW_VT
CROW_VTOP2y ago
こんな感じでエラー出ちゃって💦
No description
月猫ch
月猫ch2y ago
on death:
type of victim is zombie
chance of 100%:
set {_item} to diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム"
give {_item} to attacker
on death:
type of victim is zombie
chance of 100%:
set {_item} to diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム"
give {_item} to attacker
これでやってみて
CROW_VT
CROW_VTOP2y ago
エラー出ますね
No description
月猫ch
月猫ch2y ago
on death of zombie:
chance of 100%:
set {_item} to diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム"
give {_item} to attacker
on death of zombie:
chance of 100%:
set {_item} to diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム"
give {_item} to attacker
CROW_VT
CROW_VTOP2y ago
反応しました‼️
月猫ch
月猫ch2y ago
on death of zombie:
chance of 100%:
# ここで名前を設定
set {_name} to "&6特殊なダイヤモンド"
# lore追加
add "&d2023ハロウィンイベント専用アイテム" to {_lore::*}
add "こんな感じでloreを追加できるよ" to {_lore::*}
set {_item} to diamond of fortune 5 named {_name} with lore {_lore::*}
give {_item} to attacker
on death of zombie:
chance of 100%:
# ここで名前を設定
set {_name} to "&6特殊なダイヤモンド"
# lore追加
add "&d2023ハロウィンイベント専用アイテム" to {_lore::*}
add "こんな感じでloreを追加できるよ" to {_lore::*}
set {_item} to diamond of fortune 5 named {_name} with lore {_lore::*}
give {_item} to attacker
CROW_VT
CROW_VTOP2y ago
ありがとうございます‼️

Did you find this page helpful?