ネームタグを消す方法

scoreboardのteamsを用いらずに、ネームタグを消す方法を教えてください。 アーマースタンドを頭の位置に配置するとは聞いたことあるのですが、実際にどのようなコードを書けばいいのかがわかりません。また、他にいい方法があれば教えてほしいです。
8 Replies
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
PRから引用 skRayFallが入っていてもSkriptでネームタグや当たり判定を消すコード Skellett必須 ※両方入れると競合します ネームタグ
on join:
if scoreboard team "nametag" in scoreboard scoreboard of player is not set:
register new scoreboard team "nametag" in scoreboard scoreboard of player
set {_team} to scoreboard team "nametag" in scoreboard scoreboard of player
set scoreboard team option NAME_TAG_VISIBILITY of team {_team} to NEVER
loop all players:
loop-player is not player
scoreboard add entry "%loop-player%" to team {_team}
scoreboard team "nametag" in scoreboard scoreboard of loop-player is set
scoreboard add entry "%player%" to team scoreboard team "nametag" in scoreboard scoreboard of loop-player
on join:
if scoreboard team "nametag" in scoreboard scoreboard of player is not set:
register new scoreboard team "nametag" in scoreboard scoreboard of player
set {_team} to scoreboard team "nametag" in scoreboard scoreboard of player
set scoreboard team option NAME_TAG_VISIBILITY of team {_team} to NEVER
loop all players:
loop-player is not player
scoreboard add entry "%loop-player%" to team {_team}
scoreboard team "nametag" in scoreboard scoreboard of loop-player is set
scoreboard add entry "%player%" to team scoreboard team "nametag" in scoreboard scoreboard of loop-player
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
以下の構文を用いてアマスタをプレイヤーに乗せても同様のことが可能
make armor stand ride player
make armor stand ride player
https://skripthub.net/docs/?id=1126
Skript Hub - Documentation
Vehicle (Effect) - Skript
Makes an entity ride another entity, e.g. a minecart, a saddled pig, an arrow, etc.
akon
akon2y ago
written by me
Yeahn
Yeahn2y ago
感謝 ※両方入れると競合します というのはどういうことですか?
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
関係ないので消しているんだけど 元の文に当たり判定を消すコードもついてて
akon
akon2y ago
soudakke
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
多分そのコードと同時に入れるとバグるってことだと 思います