Command Block Hilfe?
Hallo, ich hab da mal eine Frage. Wie kann ich eine Tür bauen, die sich nur öffnen lässt, wenn ich einen bestimmten Gegenstand in meinem Inventar habe, wie z.B. eine keycard? Finde nichts dazu im Internet
2 Antworten
Entweder mit Redstone:
oder mit Command:
|
| door
[ ] solid block
air
[R] repeating command block (downwards)
[C] chain command block (downwards)
#commands:
#repeating block:
setblock ~ ~1 ~ air
#chain block
execute positioned ~ ~4 ~ if entity @a[distance=..2,nbt={Inventory:[{tag:{ironCard:1b}}]}] run setblock ~ ~2 ~ redstone_torch
#giving the keycard:
/give @p iron_ingot{ironCard:1b,display:{Name:'{"text":"Iron Keycard","italic":"false"}'}}
[1.12.2+]
--Hab das so gefunden, ob es klappt weiß ich nicht--
Ich kann dir da den yt Kanal TheJoCraft empfehlen, der macht sehr viel mit Commandblöcken.Vielleicht findest du da was.
Ist mein Lieblingsyoutuber, habe bei ihm aber leider auch nichts in der Art gefunden😂