在1.13通过穷举制作画布

最终效果:

教程图片

实现方法:

由于1.13中添加了局部坐标(^),所以可以通过穷举局部坐标来减少穷举量

穷举次数可以控制在100次以内(画布最远距离)

建立计分板:

  1. /scoreboard objectives add paint minecraft.used:minecraft.carrot_on_a_stick

给需要使用画板的玩家添加标签:

  1. /tag <玩家> add Painter

穷举:(这里的穷举是从1~99,你可以通过实际情况选择穷举次数)

  1. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^1 white_wool run setblock ^ ^2 ^1 black_wool
  2. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^2 white_wool run setblock ^ ^2 ^2 black_wool
  3. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^3 white_wool run setblock ^ ^2 ^3 black_wool
  4. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^4 white_wool run setblock ^ ^2 ^4 black_wool
  5. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^5 white_wool run setblock ^ ^2 ^5 black_wool
  6. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^6 white_wool run setblock ^ ^2 ^6 black_wool
  7. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^7 white_wool run setblock ^ ^2 ^7 black_wool
  8. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^8 white_wool run setblock ^ ^2 ^8 black_wool
  9. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^9 white_wool run setblock ^ ^2 ^9 black_wool
  10. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^10 white_wool run setblock ^ ^2 ^10 black_wool
  11. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^11 white_wool run setblock ^ ^2 ^11 black_wool
  12. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^12 white_wool run setblock ^ ^2 ^12 black_wool
  13. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^13 white_wool run setblock ^ ^2 ^13 black_wool
  14. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^14 white_wool run setblock ^ ^2 ^14 black_wool
  15. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^15 white_wool run setblock ^ ^2 ^15 black_wool
  16. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^16 white_wool run setblock ^ ^2 ^16 black_wool
  17. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^17 white_wool run setblock ^ ^2 ^17 black_wool
  18. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^18 white_wool run setblock ^ ^2 ^18 black_wool
  19. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^19 white_wool run setblock ^ ^2 ^19 black_wool
  20. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^20 white_wool run setblock ^ ^2 ^20 black_wool
  21. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^21 white_wool run setblock ^ ^2 ^21 black_wool
  22. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^22 white_wool run setblock ^ ^2 ^22 black_wool
  23. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^23 white_wool run setblock ^ ^2 ^23 black_wool
  24. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^24 white_wool run setblock ^ ^2 ^24 black_wool
  25. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^25 white_wool run setblock ^ ^2 ^25 black_wool
  26. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^26 white_wool run setblock ^ ^2 ^26 black_wool
  27. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^27 white_wool run setblock ^ ^2 ^27 black_wool
  28. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^28 white_wool run setblock ^ ^2 ^28 black_wool
  29. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^29 white_wool run setblock ^ ^2 ^29 black_wool
  30. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^30 white_wool run setblock ^ ^2 ^30 black_wool
  31. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^31 white_wool run setblock ^ ^2 ^31 black_wool
  32. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^32 white_wool run setblock ^ ^2 ^32 black_wool
  33. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^33 white_wool run setblock ^ ^2 ^33 black_wool
  34. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^34 white_wool run setblock ^ ^2 ^34 black_wool
  35. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^35 white_wool run setblock ^ ^2 ^35 black_wool
  36. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^36 white_wool run setblock ^ ^2 ^36 black_wool
  37. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^37 white_wool run setblock ^ ^2 ^37 black_wool
  38. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^38 white_wool run setblock ^ ^2 ^38 black_wool
  39. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^39 white_wool run setblock ^ ^2 ^39 black_wool
  40. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^40 white_wool run setblock ^ ^2 ^40 black_wool
  41. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^41 white_wool run setblock ^ ^2 ^41 black_wool
  42. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^42 white_wool run setblock ^ ^2 ^42 black_wool
  43. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^43 white_wool run setblock ^ ^2 ^43 black_wool
  44. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^44 white_wool run setblock ^ ^2 ^44 black_wool
  45. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^45 white_wool run setblock ^ ^2 ^45 black_wool
  46. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^46 white_wool run setblock ^ ^2 ^46 black_wool
  47. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^47 white_wool run setblock ^ ^2 ^47 black_wool
  48. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^48 white_wool run setblock ^ ^2 ^48 black_wool
  49. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^49 white_wool run setblock ^ ^2 ^49 black_wool
  50. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^50 white_wool run setblock ^ ^2 ^50 black_wool
  51. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^51 white_wool run setblock ^ ^2 ^51 black_wool
  52. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^52 white_wool run setblock ^ ^2 ^52 black_wool
  53. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^53 white_wool run setblock ^ ^2 ^53 black_wool
  54. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^54 white_wool run setblock ^ ^2 ^54 black_wool
  55. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^55 white_wool run setblock ^ ^2 ^55 black_wool
  56. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^56 white_wool run setblock ^ ^2 ^56 black_wool
  57. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^57 white_wool run setblock ^ ^2 ^57 black_wool
  58. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^58 white_wool run setblock ^ ^2 ^58 black_wool
  59. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^59 white_wool run setblock ^ ^2 ^59 black_wool
  60. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^60 white_wool run setblock ^ ^2 ^60 black_wool
  61. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^61 white_wool run setblock ^ ^2 ^61 black_wool
  62. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^62 white_wool run setblock ^ ^2 ^62 black_wool
  63. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^63 white_wool run setblock ^ ^2 ^63 black_wool
  64. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^64 white_wool run setblock ^ ^2 ^64 black_wool
  65. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^65 white_wool run setblock ^ ^2 ^65 black_wool
  66. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^66 white_wool run setblock ^ ^2 ^66 black_wool
  67. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^67 white_wool run setblock ^ ^2 ^67 black_wool
  68. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^68 white_wool run setblock ^ ^2 ^68 black_wool
  69. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^69 white_wool run setblock ^ ^2 ^69 black_wool
  70. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^70 white_wool run setblock ^ ^2 ^70 black_wool
  71. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^71 white_wool run setblock ^ ^2 ^71 black_wool
  72. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^72 white_wool run setblock ^ ^2 ^72 black_wool
  73. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^73 white_wool run setblock ^ ^2 ^73 black_wool
  74. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^74 white_wool run setblock ^ ^2 ^74 black_wool
  75. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^75 white_wool run setblock ^ ^2 ^75 black_wool
  76. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^76 white_wool run setblock ^ ^2 ^76 black_wool
  77. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^77 white_wool run setblock ^ ^2 ^77 black_wool
  78. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^78 white_wool run setblock ^ ^2 ^78 black_wool
  79. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^79 white_wool run setblock ^ ^2 ^79 black_wool
  80. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^80 white_wool run setblock ^ ^2 ^80 black_wool
  81. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^81 white_wool run setblock ^ ^2 ^81 black_wool
  82. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^82 white_wool run setblock ^ ^2 ^82 black_wool
  83. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^83 white_wool run setblock ^ ^2 ^83 black_wool
  84. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^84 white_wool run setblock ^ ^2 ^84 black_wool
  85. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^85 white_wool run setblock ^ ^2 ^85 black_wool
  86. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^86 white_wool run setblock ^ ^2 ^86 black_wool
  87. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^87 white_wool run setblock ^ ^2 ^87 black_wool
  88. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^88 white_wool run setblock ^ ^2 ^88 black_wool
  89. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^89 white_wool run setblock ^ ^2 ^89 black_wool
  90. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^90 white_wool run setblock ^ ^2 ^90 black_wool
  91. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^91 white_wool run setblock ^ ^2 ^91 black_wool
  92. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^92 white_wool run setblock ^ ^2 ^92 black_wool
  93. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^93 white_wool run setblock ^ ^2 ^93 black_wool
  94. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^94 white_wool run setblock ^ ^2 ^94 black_wool
  95. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^95 white_wool run setblock ^ ^2 ^95 black_wool
  96. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^96 white_wool run setblock ^ ^2 ^96 black_wool
  97. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^97 white_wool run setblock ^ ^2 ^97 black_wool
  98. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^98 white_wool run setblock ^ ^2 ^98 black_wool
  99. execute as @a if entity @s[scores={paint=1..}] at @s if block ^ ^2 ^99 white_wool run setblock ^ ^2 ^99 black_wool

重置:

  1. scoreboard players reset @a[scores={paint=1..}] paint
  • what_name2018-04-12

                        
    • what_name2018-04-21

      这是一条回复