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

閉じている鉄ドアを右クリしたら鍵を消費して開くようにしたい
10 Replies
ふぁたおくん
ふぁたおくんOP16mo ago
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
ふぁたおくん
ふぁたおくんOP16mo ago
No description
ふぁたおくん
ふぁたおくんOP16mo ago
名前に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
これでいけるのか知らんけど 何とかなりそうだ
ふぁたおくん
ふぁたおくんOP16mo ago
鉄ドアにtagつけて、tagついてたら~にすればいいのかな
月猫ch
月猫ch16mo ago
おれはtag系いじりたく無さすぎて テクスチャ変えたレッドストーンブロックをスイッチにしてる
gladiolus8789
gladiolus878916mo 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