ネームタグを非表示にしたい(解決済み)

サーバーpaper バージョンは 1.21.1 入れてるプラグインは [skript系] Skript-2.10.1.jar SkQuery-4.1.10.jar SkBee-3.8.2.jar PoaSK.jar [その他] ViaVersion-5.2.1.jar worldedit-bukkit-7.3.6.jar DiscordSRV-Build-1.29.0.jar floodgate-spigot.jar Geyser-Spigot.jar LunaChat.jar CommandPanels.jar Damage-1.0.jar [自作プラグイン] 問題点 Minecraft内のteamコマンド使うとclient glowが使えなくて Skellett使ってscoreboard team使おうとしても そもそもskellettのバージョンが1.21.1対応してないから skriptバグるし 防具立てでネームタグ消す方法はskriptの構文上できない (ゲーム内でスペク使うので綺麗に見せたいのもある) これって詰みですか?、、
58 Replies
yukkina
yukkina3mo ago
NTEって全然競合しないイメージある
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
skbeeはどうですか? https://skripthub.net/docs/?id=10764
Skript Hub - Documentation
Team - Options (Expression) - SkBee
Represents an option for a team.
r
rOP3mo ago
やってみます!
r
rOP3mo ago
https://skripthub.net/docs/?id=8543 Client glow使ったときにほかのチームにセットされてしまって無理そうです チームの内容いじろうとしても できなさそうです、
Skript Hub - Documentation
Client Glow (Effect) - PoaSK
Allows you to make an entity or player glow for a player and not glow for another. Or different colours. Useful for things such as teams. Do note: for entities (maybe players) un rendering the entity will make the player stop seeing them glow. If you have TAB make sure you turn team anti-overide to false
No description
unnnnnnnnnnn
unnnnnnnnnnn3mo ago
防具立てでネームタグ消す方法はskriptの構文上できない
がよくわからない make entity rideが消えた? PoaSKが悪さしてる気がするのでClient Glowをreflectか何かで置き換えるのが丸そう
tanoKun
tanoKun3mo ago
ちなみに skript で"無理かぁ" って思ったものは すべてrelfectで可能です
r
rOP3mo ago
relfectって初めて聞きました そんな事できるんですか! relfectって触れたことなくて何も知らなんですけど この発光に関して何か知ってることありませんか?、
tanoKun
tanoKun3mo ago
team自体は https://minecraft.wiki/w/Java_Edition_protocol#Update_Teams にのっといとるので
Minecraft Wiki
Java Edition protocol
This article presents a dissection of the current Java Edition protocol for 1.21.4, protocol 769. The changes between versions may be viewed at Protocol History.
tanoKun
tanoKun3mo ago
これをskriptでいじればいいかな
r
rOP3mo ago
なる、ほど? これ何言語なんですか? C++しか触ったことなくて
tanoKun
tanoKun3mo ago
使ってるプロコトルなので、packetの説明みたいなものです サバとクライアントの通信はこの規定に従ってます なので、逆に言えばこれに従ってクライアントに光るパケットを送れば 自分で光らせられます
r
rOP3mo ago
なるほど 構文の書き方よくわからなかったんですけど 例見たいのありませんか?
r
rOP3mo ago
ありがとうございます! 何をimportすればいいかこれにそれっぽいの書いてなくてどうすれうばいいですか?
tanoKun
tanoKun3mo ago
https://github.com/Ekpoa/PoaSK/blob/master/src/main/java/poa/poask/util/reflection/TeamPacket.java ここの Reflection.getNMSClass("PacketPlayOutScoreboardTeam$b", "net.minecraft.network.protocol.game"); がちょっと参考になるけど
GitHub
PoaSK/src/main/java/poa/poask/util/reflection/TeamPacket.java at ma...
Contribute to Ekpoa/PoaSK development by creating an account on GitHub.
tanoKun
tanoKun3mo ago
1.21.1でpacketいじれる addonって会ったっけ
r
rOP3mo ago
インポートはしなくていいってこと?、
tanoKun
tanoKun3mo ago
ちょっと作ってみるから待ってて
r
rOP3mo ago
分かりました! ネームタグ使う事ないのでもう ワールドから消せるなら消したいです
tanoKun
tanoKun3mo ago
なら entity hidden
r
rOP3mo ago
これってコマンド打つ時のネームタグも消えちゃいますか? あくまでも表示上の話ですか? give "nametag" diamond
tanoKun
tanoKun3mo ago
表示上だけ これも内部でパケット送ってるだけだからね
r
rOP3mo ago
必須pluginとかありますか?
tanoKun
tanoKun3mo ago
no
tanoKun
tanoKun3mo ago
skUnity Forums
Hide players
how i can hide players with skript and still see them on the tab
r
rOP3mo ago
プレイヤーごと消えちゃう
tanoKun
tanoKun3mo ago
are 何を消したいんだっけ
r
rOP3mo ago
ネームタグ
tanoKun
tanoKun3mo ago
これってネームタグをワールドからって意味?
r
rOP3mo ago
そう とりあえず消せればいいんだけど、、 ワールドでもなんでもいいから
tanoKun
tanoKun3mo ago
カラフルな glow と、nametag hidden を両立させたいっていうのであってる?
r
rOP3mo ago
あってる
tanoKun
tanoKun3mo ago
Skript Hub - Documentation
Team Packet (Effect) - PoaSK
Send a scoreboard team packet to player for the nametag visibility use one of the following strings (case sensitive): always hideForOtherTeams hideForOwnTeam never for collision use one of the following strings (case sensitive): always pushOtherTeams pushOwnTeam never
No description
tanoKun
tanoKun3mo ago
てか poask 2.1.1 なら 副作用ないっぽいよ
r
rOP3mo ago
このチーム使えば両立できるのか
tanoKun
tanoKun3mo ago
ワンチャン 特定の人間にだけ見えるように光らせる でないのなら teamだけでできるかも
r
rOP3mo ago
特定の人だけだ、 最後の entity uuid (uuid of target entity) いまいちわからない
loop all players:
set {_p} to loop-player
send team packet to all players with name "test" nametag visibility "never" with entity uuid (uuid of {_p})
loop all players:
set {_p} to loop-player
send team packet to all players with name "test" nametag visibility "never" with entity uuid (uuid of {_p})
tanoKun
tanoKun3mo ago
これ書いてあるプロパティーは全部書かないとダメカモ 省略しちゃダメ
r
rOP3mo ago
まじか
loop all players:
set {_p} to loop-player
send team packet to all players with name "test" displayname "test" nametag visibility "never" collision "never" color white prefix "1" and suffix "2" with entity uuid (uuid of {_p})
loop all players:
set {_p} to loop-player
send team packet to all players with name "test" displayname "test" nametag visibility "never" collision "never" color white prefix "1" and suffix "2" with entity uuid (uuid of {_p})
これでやってみたけど機能しない
tanoKun
tanoKun3mo ago
光らないって意味? エラーが出る?
r
rOP3mo ago
そもそもチームに入らない
tanoKun
tanoKun3mo ago
packetだから、サバのチームの管理下じゃない サバであるTeamの情報の実体があるんだけど、その実体の"情報"をクライアントに送るのが packet の役目の一種ね 今情報しか送ってないから、実体はないわけね
r
rOP3mo ago
なるほど あぁそういうことか
tanoKun
tanoKun3mo ago
発光の色の処理はクライアントにあるから その送られていたteamの情報を基に色を付ける glow effect 使えば、versionがしっかりあってれば 動くんじゃないかな
r
rOP3mo ago
動いた! all players with name "%{_p}%"
tanoKun
tanoKun3mo ago
good
r
rOP3mo ago
省略しても行けた
tanoKun
tanoKun3mo ago
iine ほんとだ
tanoKun
tanoKun3mo ago
No description
tanoKun
tanoKun3mo ago
あれ古いわ
r
rOP3mo ago
チームってこれ特定の人から見たらとかもできるのかな
tanoKun
tanoKun3mo ago
player a, b, c がいて aから見て b,c は仮想 1 team bから見て a,c は仮想 2 team って感じで見る人によって所属場所が違うってこと?
r
rOP3mo ago
そう
tanoKun
tanoKun3mo ago
send team packet to all players.... の all players 変えればいい
r
rOP3mo ago
ありがとうございます チームリセットとかってない?
tanoKun
tanoKun3mo ago
基本的に抜けたらなくなっちゃうね だから実際に使うんだったら 基本的に nametagvisiblityはnever で 色だけ変えたいのであれば set {playerColor::%player%} to "red" とかにして on join とか更新したいときに これを参照すればいい
r
rOP3mo ago
なるほどありがとうございます! マジで助かりました
tanoKun
tanoKun3mo ago
👍

Did you find this page helpful?