本帖最后由 贰逼 于 2014-12-17 21:30 编辑




这便是接下来教程中所出现的两种茶几(一个是单腿,另一个双腿)

9*9平面生成:


生成这样一个缩小方块除了利用滤器:
http://www.mcbbs.net/thread-332808-1-1.html
批量缩小方块

还有手动指令,便于逻辑组执行
通过拼接,以下为各个缩小方块的相对坐标生成指令
  1. /summon ArmorStand ~0.65 ~-0.2 ~-0.59 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  2. /summon ArmorStand ~1.03 ~-0.2 ~-0.59 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  3. /summon ArmorStand ~0.27 ~-0.2 ~-0.59 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  4. /summon ArmorStand ~0.27 ~-0.2 ~-0.2 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  5. /summon ArmorStand ~1.03 ~-0.2 ~-0.2 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  6. /summon ArmorStand ~0.65 ~-0.2 ~-0.2 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  7. /summon ArmorStand ~1.03 ~-0.2 ~0.18 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  8. /summon ArmorStand ~0.27 ~-0.2 ~0.18 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}

  9. /summon ArmorStand ~0.65 ~-0.2 ~0.18 {Equipment:[{id:"minecraft:carpet"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}
复制代码

通过http://www.mcbbs.net/thread-344453-1-1.html的方法单挑指令执行多条指令,折合为一个核心指令:
  1. /summon MinecartCommandBlock ~ ~4 ~-0.1
  2. {Command:"/kill@e[type=MinecartCommandBlock,r=8]",Riding:
  3. {id:"MinecartCommandBlock",Command:"/kill @e[type=Item,r=7]",Riding:
  4. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~0.65 ~0.8 ~-0.59 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  5. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~1.03 ~0.8 ~-0.59 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  6. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~0.27 ~0.8 ~-0.59 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  7. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~0.27 ~0.8 ~-0.2 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  8. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~1.03 ~0.8 ~-0.2 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  9. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~1.03 ~0.8 ~0.17 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  10. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~0.65 ~0.8 ~-0.2 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  11. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~0.27 ~0.8 ~0.17 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  12. {id:"MinecartCommandBlock",Command:" /summon ArmorStand ~0.65 ~0.8 ~0.17 {Equipment:[{id:171},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[346.0F,44.3F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,DisabledSlots:2069869,ShowArms:0b,Small:0b}",Riding:
  13. {id:"MinecartCommandBlock",Command:"/kill @e[type=Item,r=7]",Riding:
  14. {id:"MinecartCommandBlock",Command:"/setblock ~ ~ ~-1 minecraft:lava 7 replace",Riding:
  15. {id:"FallingSand",Time:1,Block:"minecraft:activator_rail",Riding:
  16. {id:"FallingSand",Block:"minecraft:redstone_block",Time:1,Riding:
  17. {id:"Item",Motion:[0.0,0.0,-0.1],Age:5996}}}}}}}}}}}}}}}}
复制代码
也就是执行上面的九条指令。
(组直接的方式可以用word文档将里面出现的171改成其他id)


制作茶几:


首先用上面的单指令生成平面



生成的平面ArmorStand(未隐身,便于操作)



用fill填充指令方块上面第二个方块,平面下方的方块一个2*3的平面


单腿:


破坏原来的多条指令,在如图位置放上这两个指令方块:
黑:
  1. /summon ArmorStand ~0.4 ~1.25 ~0.25 {Equipment:[{id:"minecraft:fence"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[0.0F,0.0F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,Invisible:0b,DisabledSlots:1973790,ShowArms:1b,Small:0b}
复制代码

白:
  1. /summon ArmorStand ~0.4 ~1.9 ~0.25 {Equipment:[{id:"minecraft:fence"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[0.0F,0.0F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,Invisible:0b,DisabledSlots:1973790,ShowArms:1b,Small:0b}
复制代码

通过相对坐标在平面中心生成不同高度生成两个腿



成品


双腿:


破坏原来的多条指令,在如图位置放上这四个指令方块:

  1. /summon ArmorStand ~0.9 ~1.2 ~-0.7 {Equipment:[{id:"minecraft:fence"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[0.0F,0.0F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,Invisible:0b,DisabledSlots:1973790,ShowArms:1b,Small:0b}
复制代码


  1. /summon ArmorStand ~0.9 ~1.9 ~-0.7 {Equipment:[{id:"minecraft:fence"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[0.0F,0.0F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,Invisible:0b,DisabledSlots:1973790,ShowArms:1b,Small:0b}
复制代码


  1. /summon ArmorStand ~0.9 ~1.2 ~-0.7 {Equipment:[{id:"minecraft:fence"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[0.0F,0.0F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,Invisible:0b,DisabledSlots:1973790,ShowArms:1b,Small:0b}
复制代码

绿
  1. /summon ArmorStand ~0.9 ~1.9 ~-0.7 {Equipment:[{id:"minecraft:fence"},{},{},{},{}],Pose:{Body:[0.0F,0.0F,0.0F],LeftArm:[0.0F,0.0F,0.0F],RightArm:[0.0F,0.0F,0.0F],LeftLeg:[270.0F,0.0F,0.0F],RightLeg:[270.0F,0.0F,0.0F],Head:[0.0F,0.0F,0.0F]},NoGravity:1b,NoBasePlate:1b,Invisible:0b,DisabledSlots:1973790,ShowArms:1b,Small:0b}
复制代码
通过相对坐标在平面两边生成不同高度各生成两个腿



成品


最后工作:
  1. /entitydata @e[type=ArmorStand,r=2] {Invisible:1}
复制代码
玩家站在实体堆中间,一条指令让装备家隐身


完工!


[groupid=546]Command Block Logic[/groupid]