閉じている鉄ドアのみ右クリイベントを発火させたい

閉じている鉄ドアを右クリしたら鍵を消費して開くようにしたい
10 Replies
ふぁたおくん
on rightclick:
if "%event-block%" contains "iron door" and "close":
send "%event-block%"
if player's tool is tripwire hook named "小さな鍵":
remove a tripwire hook named "小さな鍵" from player
play sound "block.wooden_door.close" at player for player
open clicked block
on rightclick:
if "%event-block%" contains "iron door" and "close":
send "%event-block%"
if player's tool is tripwire hook named "小さな鍵":
remove a tripwire hook named "小さな鍵" from player
play sound "block.wooden_door.close" at player for player
open clicked block
ふぁたおくん
名前にiron doorとcloseが入ってたらいいだろと思ったら open: trueのくせに名前にclose入ってるバケモンドアだったのでつまづきました どうしたらいいでしょうか
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
blockdataを取るべ
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
Skript Hub - Documentation
BlockData - Tags (Expression) - SkBee
Get a list of all block data tags of a Block or BlockData.
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
これでいけるのか知らんけど 何とかなりそうだ
ふぁたおくん
鉄ドアにtagつけて、tagついてたら~にすればいいのかな
Tsukineko(月雲)
おれはtag系いじりたく無さすぎて テクスチャ変えたレッドストーンブロックをスイッチにしてる
gladiolus8789
gladiolus878911mo ago
似たようなの作ってたので貼ります
#Skript 2.5.3 ~
on rightclick:
player is op
player's tool is tripwire hook
if {activate.%location of targeted block%} is not set:
if targeted block is iron trapdoor:
activate block
set {activate.%location of targeted block%} to true
if "%target block%" contains "iron door":
distance between player and target block < 6.2
activate block
set {activate.%location of targeted block%} to true
else:
deactivate block
delete {activate.%location of targeted block%}
#Skript 2.5.3 ~
on rightclick:
player is op
player's tool is tripwire hook
if {activate.%location of targeted block%} is not set:
if targeted block is iron trapdoor:
activate block
set {activate.%location of targeted block%} to true
if "%target block%" contains "iron door":
distance between player and target block < 6.2
activate block
set {activate.%location of targeted block%} to true
else:
deactivate block
delete {activate.%location of targeted block%}
閉じてるのを開ける工程
if {activate.%location of targeted block%} is not set:
if "%target block%" contains "iron door":
distance between player and target block < 6.2
activate block
set {activate.%location of targeted block%} to true
if {activate.%location of targeted block%} is not set:
if "%target block%" contains "iron door":
distance between player and target block < 6.2
activate block
set {activate.%location of targeted block%} to true
Want results from more Discord servers?
Add your server
More Posts
コマンドでアイテムを付与する/syoki で 初期のピッケル と名前が付いていて、説明に ぼろぼろだ と書かれている木のピッケルがてにはいるようにしたいですWitherSkullの威力を上げたい。skript 最新 ウィザーヘッドの爆発の威力を上げる方法を探しています。何かいい方法はありませんか?初心者です。何ゴールド持ってたらというシステムを作りたい一応今は特定のコマンドを実行した時1200個金インゴッドを持っていたらコマンドを正常に実行、持っていなければキャンセルというところまで書いててエラーもなく動いたんですが次の問題として1200個の “金GUIでクリックしたアイテムにエンチャントエフェクトをつけたい```make clicked slot with shiny clicked item```特定のアイテムを使用したクラフトを禁止したい新しく作ったアイテムを既存のクラフトで使えなくしたいのですがどうすればよいでしょうか?特別なアイテムを作りたい特別なアイテムを作りたい MC v1.20.1 purpur #2001 Skript v2.7.0 β3 利用用途: ・スキルカードを紙アイテムで作る ・右クリックで紙アイテムを消費して特定のススポーンさせたアマスタを最寄りの原木に向かせたい``` spawn an armor stand at {_loc} loop all blocks in radius 1 around the last spawned entity: iモブがプレイヤーを敵対したことを検知したいイベントを調べて見ましたが、それっぽいものが見つかりませんでした モブがプレイヤーを敵対したことを検知するイベントはありますでしょうか?nbt付きの矢のダメージ無効化```on damage of a player: if attacker is an arrow: if nbt compound of attacker has tag "チェストを使ったショップを作りたい``` on right click on emerald block: set {_chest} to block below clicked block if {_chest} i