PlayerRealms developerS Community

PDC

PlayerRealms developerS Community

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

Join

help-forum

プロジェクト配布-resources

ホログラムにアイテムを表示する時に、メタ値与えたアイテムを表示したい(テクスチャ付与したもの)

```command /holo: permission: * trigger: set {_prize} to unbreakable diamond sword with damage 1 give {_prize} to player...
No description

SkQueryの演算子について

if check [player is online]->[player has permission "test"]:
if check [player is online]->[player has permission "test"]:
このような構文をskunityで見つけたのですが、これ関連の事を調べても全然出てきません 詳しく知っている方がいれば教えてほしいです できれば使い方なども教えていただければ幸いです ソース...

AnvilGUIのevent-stringに入力内容が反映されない

searchという名前のAnvilGUIを開いて、別のテキストを入力して、下のコードでテストしましたが、入力内容が反映されず前のままでした 原因を教えていただきたいです
on anvil gui done:
if anvil gui name of event-anvilinv is "search":
broadcast "%event-string%"
on anvil gui done:
if anvil gui name of event-anvilinv is "search":
broadcast "%event-string%"
...

サーバー内のすべてのプレイヤーに5秒間コマンドを実行した人だけが見ることができる発光エフェクトを付与するコマンドを追加したいです。

プラグインはThatPacketAddon、Skript2.7.0を使用しています。 サーバーはSpigot-1.16.5を使っています。 発光エフェクトのIDは24です。 コマンドの形式は/glowing %player%です。 また、コードの解説もしていただけると嬉しいです。...
No description

範囲攻撃ができなくなる

```on damage: attacker is in "pve" if cooldown of attacker's tool of attacker is not 0: cancel event stop ...

if {nick.%player%} is 1:

が反応していません。 直し方を教えてください...

killされたプレイヤーをスペクテイターにできない

正確にはset gamemode of ~やcommand "/gamemode spectator"等でスペクテイターにすることはできたのですが、ちゃんとしたスペクテイターではなくブロックをすり抜けたりテレポートができないものになってしまいます イベントはon respawnとon death of playerを使いました マイクラは1.19.4、skriptは2.7.1です...

function内でのsneak検知ができない

テスト用のコードはこちらです ```function sneak(p: player): if {_p} is sneaking: broadcast "スニーク中" broadcast "a"...
Solution:
変数管理にする手だけ提供しておきます
No description

特定のtagがついている人だけチャットを変更したい

https://discord.com/channels/545926404785569793/1159872834517094551 理想はこれの運営とかの欄が返れてtagがついていなければ変えないようにしたい if player has tagをつけるとエラーでできません...
Solution:
できました! ありがとうございます...

if {変数::%block%} <= 0が効かない

クリックしたときのイベント
```on right click: set {_loc} to event-block if y-coordinate of {_loc} is not 4.5: stop...

【解決済み】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』...

set lore of tool of player to "あああ" with ・・・

この文で繋げていくとis not an nbt compoundとエラーが発生し、アイテムにloreを複数行つけられません。set the lineなどでラインを絞ってloreをsetしようとしたのですが、これはエラーがないのにもかかわらずloreが追加されない。どうすれば?諦めたほうがいい?() kankyou java17 paper1.17.1 skript 264...

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%:」...

銃のサンプルコードが欲しい

これまで矢の射撃速度を上げて疑似的な銃として使用していましたが、エフェクトを射線につけることができなくて他の方法で弾丸を射撃できるようにしたいです。どなたかサンプルコードをください Skript 2.6.4 ServerVer 1.17.1...

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

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