ゴミ置き場 新execute対応済
これはただのゴミ置き場。
チェーンは全て条件付きとする。
・使用回数制限付きバール 《総コマンドブロック数:6》
事前準備
/give @s iron_hoe 1 0 {“can_destroy”:{“blocks”:[“iron_bars”]}}
コマンド接続
/tag @r[hasitem={item=iron_hoe,location=slot.weapon.mainhand}] add item1
/enchant @a[tag=item1] fortune 2
/crear @a[tag=item1] iron_hoe 1 8
/playsound random.glass @a[tag=item1]
/tag @a remove item1 ←これはチェーン、条件無し
上とは別で反復
/effect @a[hasitem={item=iron_hoe,location=slot.weapon.mainhand}] haste 1 9 true
・開閉システム1 《総コマンドブロック数:2》
前提としてドアの前に防具立てを置いている事とする
鍵にはデータ値10のトリップワイヤーフックを使用している事とする
/execute as @a at @s if entity @e[r=5.5,name=カギ,hasitem={item=tripwire_hook,data=10}] run setblock x y z redstone_block or /fill x y z dx dy dz redstone_block
(x,y,zは始点 dx,dy,dzは終点)
/tp @e[name=カギ] ~ ~-1000 ~
・闇属性の魔剣 《総コマンドブロック数:15》
ーー注意!仕様が変更されたため思ったように動かない可能性があります!ーー
/execute as @a[tag=ss1,hasitem={item=totem_of_undying,location=slot.weapon.offhand,data=100}] at @s run tag @s[hasitem={item=netherite_sword,location=slot.weapon.mainhand}] add s1
/clear @a[tag=s1] netherite_sword 1 2
/execute as @a[tag=s1] at @s run structure load sword1 ~ ~1 ~
/execute as @a[tag=s1] at @s potisioned ^^^1.65 run summon armor_stand 闇 ~ ~ ~
/execute as @e[name=闇,tag=!ok1] at @s run tp @s ~~~ facing @p[tag=s1]
/tag @e[name=闇,tag=!ok1] add ok1
/tag @a remove s1 ←これはチェーン、条件無し
上とは別で反復
/execute as @e[name=闇] at @s run damage @a[tag=!s1,type=!armor_stand,type=!npc,type=!item,r=2.4] 1 suicide
/execute as @e[name=闇] at @s run tp @s ^^^0.65
↓
/scoreboard players add @e[name=闇] kyori 1 ←はチェーン、条件付き
/kill @e[scores={kyori=30..}]
/execute as @e[name=闇] at @s run paticle minecraft:end_chest ~ ~0.7 ~
/execute as @e[name=闇] at @s run paticle minecraft:mob_portal ~ ~0.7 ~
/execute as @e[name=闇] at @s run paticle minecraft:wither_boss_invulnerable ~ ~0.7 ~
/execute as @e[name=闇] at @s run paticle minecraft:dragon_death_explosion_emitter ~ ~0.7 ~