アイテム欄がいっぱいでskriptのgiveが動作しない時の対策

この鯖で2回訪ねて以下の4種類のコマンドを作ったのですが、
on break:
event-block is deepslate_diamond_ore
chance of 20%:
give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to player
on break:
event-block is deepslate_diamond_ore
chance of 20%:
give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to player
on break:
event-block is iron_ore
chance of 40%:
give iron ingot of fortune 3 named "&6特殊な鉄インゴット" with lore "&d2023ハロウィンイベント専用アイテム" to player
on break:
event-block is iron_ore
chance of 40%:
give iron ingot of fortune 3 named "&6特殊な鉄インゴット" with lore "&d2023ハロウィンイベント専用アイテム" to player
on death of zombie:
chance of 5%:
give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to attacker
on death of zombie:
chance of 5%:
give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to attacker
on death of zombie:
chance of 10%:
give iron ingot of fortune 3 named "&6特殊な鉄インゴット" with lore "&d2023ハロウィンイベント専用アイテム" to attacker
on death of zombie:
chance of 10%:
give iron ingot of fortune 3 named "&6特殊な鉄インゴット" with lore "&d2023ハロウィンイベント専用アイテム" to attacker
このコマンドだとアイテム欄がいっぱいの時に動作しない気がして、その対策としてこの続きに作ってほしいスクリプトがあって書かせていただきました。 ・アイテム欄がいっぱいの時にダイヤやインゴットではなく特定のスコアボードに数字を入れる。 ・その時にチャット欄で警告の言うな文を書く(文は後で製作するためわかるようにしていただければ幸いです) ・『/event』のような特定のコマンドを打つとスコアボードの数に応じてダイヤインゴットがもらえる 上記の条件を満たしたスクリプトをよろしくお願いします。
6 Replies
Tsukineko(月雲)
@CROW giveではなく、倒したらその場にdropにすれば手っ取り早そうですね
CROW_VT
CROW_VT9mo ago
確かに(今気づいた) あの〜giveをdropに書き換えたらいけますか?
Melonium
Melonium9mo ago
後ろのto playerを消せばokです
CROW_VT
CROW_VT9mo ago
(*`・ω・)ゞ
あお🦀
あお🦀8mo ago
かなり前の投稿に返答することになってしまいますがインベントリに空きがない時にドロップする構文 https://skripthub.net/docs/?id=9276
Skript Hub - Documentation
Give or Drop Item (Effect) - SkBee
Attempts to give an item to a player and if they dont have room it will drop instead.
Want results from more Discord servers?
Add your server
More Posts
while構文の想定外の動き(条件にあってなくてもとまらない)``` function spawnGunnerMob(loc: location) :: entity: spawn zombie at {_loc} set {_entity} 採掘時の確率scriptsのキル時確率版の作成以下のscriptsのキルした時版が作りたいです!! 『on break: event-block is diamond_ore chance of 20%: giveset 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" ``` みたいな感