Advertisement
tatsu0123

カスタムクラフティングテーブル

Nov 6th, 2014
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. ・スコアボードの準備
  2. /scoreboard objectives add Crafting dummy Crafting
  3.  
  4.  
  5. ・レシピの用意
  6. /setblock ~ ~ ~ dropper 1 replace {CustomName:"スペシャルクラフト"}
  7. このコマンドで置かれるドロッパーに
  8. "レシピ素材"と"完成品"を入れた物を、適当な場所に設置しておく
  9.  
  10.  
  11. ・クロック回路
  12. 動作順に
  13. /execute @e[type=ArmorStand,name=CraftingTable] ~ ~ ~ detect ~ ~1 ~ air -1 /kill @e[type=ArmorStand,name=CraftingTable,r=0,c=1]
  14. /execute @e[type=ArmorStand,name=CraftingTable] ~ ~1 ~ /testforblocks [レシピ用ドロッパーの座標] ~ ~ ~
  15. /execute @e[type=ArmorStand,name=CraftingTable,score_Crafting_min=1] ~ ~1 ~ /clone [完成用ドロッパーの座標] ~ ~ ~
  16. ...
  17. ※レシピを増やしたい場合はこの後に上2つのコマンドとレシピドロッパーを追加していく
  18.  
  19.  
  20. ・クラフティングテーブル設置
  21. /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\"}}"}}
  22.  
  23. このコマンドを実行して得られる看板をどこかに置き、右クリックでクラフティングテーブルを設置
  24. 撤去したい場合、ドロッパーを壊せばアーマースタンドもkillされる
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement