-
Notifications
You must be signed in to change notification settings - Fork 3
method: setItem
Nano191225 edited this page Dec 14, 2025
·
4 revisions
setItemを使用してプレイヤーにアイテムを渡します
/tag @s add "setItem:{item=minecraft:diamond_sword}"
/tag @s add "setItem:{item=minecraft:diamond_sword,slot=2}"
/tag @s add "setItem:{item=minecraft:diamond_sword,slot=2,enchants=[{name=sharpness,level=5},{name=unbreaking,level=3}]}"
/tag @s add "setItem:{item=minecraft:dirt,amount=64,data=0,slot=2}"
/tag @s add "setItem:{item=minecraft:diamond_sword,name='{name} の剣'}"
剣の名前 : Notch の剣
変数 を使用することができます