採掘時の確率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
Tsukineko(月雲)
on deathの時のコード見たいっす
unnnnnnnnnnn
unnnnnnnnnnn9mo ago
動作しないじゃなくて、エラーを吐くでは?
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
event-blockの行消してto playerをto attackerに変えれば動くんやろな
CROW_VT
CROW_VT9mo ago
動きました☆ありがとうございます! ………で次の質問になるんですけど、モブ指定ってどうやるんですかね?
Tsukineko(月雲)
具体的にどのモブを指定したいかによるなぁ(´・ω・`)
CROW_VT
CROW_VT9mo ago
基本敵対モブになりますね クモとかゾンビとかスケルトンをしたいと思ってます
Tsukineko(月雲)
要するに 特定のモブを倒したら特定のアイテムドロップ がやりたいのかな
CROW_VT
CROW_VT9mo ago
そうです‼️
Tsukineko(月雲)
倒すモブは バニラでいいの?
CROW_VT
CROW_VT9mo ago
バニラで大丈夫なはずです‼️
Tsukineko(月雲)
なら
on death:
type of victim is zombie
on death:
type of victim is zombie
とかでいけると思う ちなコードを張るときは 『』とかじゃなくて ``` ここにコード!!!!!! ``` この形式で張ると見やすいやで
CROW_VT
CROW_VT9mo 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_VT9mo ago
こんな感じでエラー出ちゃって💦
No description
Tsukineko(月雲)
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_VT9mo ago
エラー出ますね
No description
Tsukineko(月雲)
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_VT9mo ago
反応しました‼️
Tsukineko(月雲)
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_VT9mo ago
ありがとうございます‼️
Want results from more Discord servers?
Add your server
More Posts
set lore of tool of player to "あああ" with ・・・この文で繋げていくとis not an nbt compoundとエラーが発生し、アイテムにloreを複数行つけられません。set the lineなどでラインを絞ってloreをsetしようとしたのでエンダーパールのようなクールダウンエフェクト?を特定のアイテムに付けたいServer 1.20.1 Skript 2.7.0OneBlockの用にランダムなブロックを置きたいがリセットコマンドの方だけうまくいく!?``` on break: set {_loc} to location(0.5,64.5,0.5,world "oneblock") if event-block's locatioskript Ver.2.7.0の「give」で与えるアイテムをエンチャント付与だけではなく名前と説明文も変えたいexecute console command "ゲーム内コマンド"で出来るとの情報を得たのでしてみたところ名前等の変更コマンドに対応してなく、giveコマンドを調べたのですが、エンチャント付与以外見銃のサンプルコードが欲しいこれまで矢の射撃速度を上げて疑似的な銃として使用していましたが、エフェクトを射線につけることができなくて他の方法で弾丸を射撃できるようにしたいです。どなたかサンプルコードをください Skript 2.リスト変数にテキストを入れたい```command /setname [<text>]: permission: op permission message: &cあなたは運営ではありません aliaseson console log ではspawnが使えない!?**コード**``` # location指定を関数にしてみた # 動作自体は正常 function lobbyLocation() :: location: set {_loc} to loNPCに防具を持ってクリックしたときに装備されないようにしたい``` Citizen Right Click: if npc is named "test": cancel event send "a" ``` みたいな感skript作動しないSkriptは動かないです Spigot 1.17.1 Skript 2.7.0特定のtagがついている人だけチェストが明けれなくなるやつ```on right click: if event-entity is chest named "ガチャ": if player is has tag "oni":