PlayerRealms developerS Community

PDC

PlayerRealms developerS Community

日本最大のSkriptコミュニティから派生した、マイクラサーバーの管理者及び開発者向けのコミュニティです。

Join

help-forum

プロジェクト配布-resources

【解決済み】chat eventが反応してない

``` [00:18:43 INFO]: [Skript] Line 12: (menu.sk) [00:18:43 INFO]: Starting a variable's name with an expression is discouraged ({%player%_id}). You could prefix it with the script's name: {menu::%player%_id} [00:18:43 INFO]: Line: if {%player%_id} is "syumai2367": [00:18:43 INFO]:...

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

この鯖で2回訪ねて以下の4種類のコマンドを作ったのですが、 ``` on break: event-block is deepslate_diamond_ore chance of 20%:...

while構文の想定外の動き(条件にあってなくてもとまらない)

``` function spawnGunnerMob(loc: location) :: entity: spawn zombie at {_loc} set {_entity} to last spawned entity...

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

以下のscriptsのキルした時版が作りたいです!! 『on break: event-block is diamond_ore chance of 20%: give diamond of fortune 5 named "&6特殊なダイヤモンド" with lore "&d2023ハロウィンイベント専用アイテム" to player』...

OneBlockの用にランダムなブロックを置きたいがリセットコマンドの方だけうまくいく!?

``` on break: set {_loc} to location(0.5,64.5,0.5,world "oneblock") if event-block's location is {_loc}: set (block at (event-block's location)) to random element out of all blocks...
Solution:
``` on break: wait 1 tick set {_loc} to location(0.5,64.5,0.5,world "oneblock") if event-block's location is {_loc}:...

skript Ver.2.7.0の「give」で与えるアイテムをエンチャント付与だけではなく名前と説明文も変えたい

execute console command "ゲーム内コマンド"で出来るとの情報を得たのでしてみたところ名前等の変更コマンドに対応してなく、giveコマンドを調べたのですが、エンチャント付与以外見つかりませんでした。どうすればいいか教えてください。 一応作ろうとしているコマンドを説明すると、「特定のアイテムを掘ると、低確率で特殊なアイテムがゲットできる」で 「on break: event-block is diamond_ore chance of 2%:」...

リスト変数にテキストを入れたい

```command /setname [<text>]: permission: op permission message: &cあなたは運営ではありません aliases: sn trigger:...

on console log ではspawnが使えない!?

コード``` location指定を関数にしてみた 動作自体は正常 function lobbyLocation() :: location: set {_loc} to location(0,0,0,world "world")...
No description

NPCに防具を持ってクリックしたときに装備されないようにしたい

``` Citizen Right Click: if npc is named "test": cancel event send "a"...

skript作動しない

Skriptは動かないです Spigot 1.17.1 Skript 2.7.0...
No description

特定のtagがついている人だけチェストが明けれなくなるやつ

on right click:
if event-entity is chest named "ガチャ":
if player is has tag "oni":
open chest with 3 row named "&agui" to player
on right click:
if event-entity is chest named "ガチャ":
if player is has tag "oni":
open chest with 3 row named "&agui" to player
こんな感じですかね...

UUIDから名前を取りたい

ランキングを作りたくて今までUUIDの変数を使っていたのでUUIDからプレイヤーの名前をとれますかね?

インベントリに入っているアイテムの説明にある数字が読み込めない

``` if name of current inventory contain "&7&l修復": cancel event if event-inventory is player's inventory: cancel event if event-item is pickaxe:...

特定アイテムの識別による条件分岐が不動

``` function getBuckPack() :: item: set {_value} to "省略" set {_item} to skull with value {_value} #set {_item} to chest...

特定スロットにおけるアイテム設置の禁止

インベントリ内で特定のスロットに、特定のアイテム以外置けなくしたいのですが 『アイテム設置をキャンセル』する方法が分かりません inventory clickをキャンセルするだけでは置いただけ置いて外せなくなったので どなたか方法を教えていただきたいです sk 2.5.3...

projectileに任意の情報を付与したい

projectileを発射した場所の座標と、projectileがhitした場所の座標の二点間の距離を出して、その距離によって場合分けして色々イベントを起こしたい(離れているほどダメージが上がるとか)です。 経緯: projectileを発射した場所を保存するところで詰まり、 projectileは連射できるので、変数で保存しようとするとリスト変数で管理する必要がある(shootするたびに座標を保存するから)と思うんですが...

top10ランキングをつくりたい

リスト変数内の数値をUUIDと紐づけたまま降順に並び替えたい

Discord BOT開発に推奨されるアドオン

vixio?DiSky? フォーラム機能弄るのがメイン(post/edit) 私は過去にvixioを使ったことがあるんだけど、正直もう覚えてないので新しいアドオンでもいいなと。 今のトレンドというか、オススメはどちらですか?...

make shootで出したアーマースタンドをカスタマイズしたい

make player shoot an armor stand at speed 1
set {_e} to last spawned entity
add "{Invisible:1b,ArmorItems:[{},{},{},{}],HandItems:[{},{}],CustomName:""a""}" to nbt of {_e}
make player shoot an armor stand at speed 1
set {_e} to last spawned entity
add "{Invisible:1b,ArmorItems:[{},{},{},{}],HandItems:[{},{}],CustomName:""a""}" to nbt of {_e}
...