Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ・スコアボードの準備
- /scoreboard objectives add Crafting dummy Crafting
- ・レシピの用意
- /setblock ~ ~ ~ dropper 1 replace {CustomName:"スペシャルクラフト"}
- このコマンドで置かれるドロッパーに
- "レシピ素材"と"完成品"を入れた物を、適当な場所に設置しておく
- ・クロック回路
- 動作順に
- /execute @e[type=ArmorStand,name=CraftingTable] ~ ~ ~ detect ~ ~1 ~ air -1 /kill @e[type=ArmorStand,name=CraftingTable,r=0,c=1]
- /execute @e[type=ArmorStand,name=CraftingTable] ~ ~1 ~ /testforblocks [レシピ用ドロッパーの座標] ~ ~ ~
- /execute @e[type=ArmorStand,name=CraftingTable,score_Crafting_min=1] ~ ~1 ~ /clone [完成用ドロッパーの座標] ~ ~ ~
- ...
- ※レシピを増やしたい場合はこの後に上2つのコマンドとレシピドロッパーを追加していく
- ・クラフティングテーブル設置
- /give @p sign 1 0 {BlockEntityTag:{Text1:"{bold:true,text:\"カスタム\",clickEvent:{action:run_command,value:\"/setblock ~ ~ ~ dropper 1 replace {CustomName:\\\"スペシャルクラフト\\\"}\"}}",Text2:"{bold:true,text:\"クラフティング\",clickEvent:{action:run_command,value:\"/summon ArmorStand ~ ~-.78 ~ {NoGravity:1b,Invisible:1b,DisabledSlots:31,Invulnerable:1b,CommandStats:{SuccessCountName:@e[type=ArmorStand,name=CraftingTable,score_Crafting_min=0,r=0],SuccessCountObjective:\\\"Crafting\\\"},Equipment:[{id:crafting_table,tag:{ench:[]}},{},{},{},{id:skull}],Pose:{Head:[0f,0f,180f],RightArm:[-14f,-46f,0f]},CustomName:\\\"CraftingTable\\\"}\"}}",Text3:"{bold:true,text:\"テーブル召喚\",clickEvent:{action:run_command,value:\"/scoreboard players set @e[type=ArmorStand,name=CraftingTable,r=0,c=1] Crafting 0\"}}",Text4:"{text:\"\",clickEvent:{action:run_command,value:\"/playsound dig.stone @a ~ ~ ~ 1 0.75 0\"}}"}}
- このコマンドを実行して得られる看板をどこかに置き、右クリックでクラフティングテーブルを設置
- 撤去したい場合、ドロッパーを壊せばアーマースタンドもkillされる
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement