finish.json 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "pools": [
  3. {
  4. "rolls": 1,
  5. "entries": [
  6. {
  7. "type": "minecraft:item",
  8. "name": "minecraft:armor_stand",
  9. "weight": 15,
  10. "functions": [
  11. {
  12. "function": "minecraft:set_nbt",
  13. "tag": "{conditions:[{name:'{\"text\":\"R≥10\",\"color\":\"red\"}',type:'red_ge',value:10s},{name:'{\"text\":\"G≥10\",\"color\":\"green\"}',type:'green_ge',value:10s},{name:'{\"text\":\"B≥10\",\"color\":\"blue\"}',type:'blue_ge',value:10s}],events:[{name:'{\"text\":\"完成游戏!\",\"color\":\"yellow\"}',type:'finish'}]}"
  14. }
  15. ]
  16. },
  17. {
  18. "type": "minecraft:item",
  19. "name": "minecraft:armor_stand",
  20. "weight": 5,
  21. "functions": [
  22. {
  23. "function": "minecraft:set_nbt",
  24. "tag": "{conditions:[{name:'{\"text\":\"R≥20\",\"color\":\"red\"}',type:'red_ge',value:20s}],events:[{name:'{\"text\":\"完成游戏!\",\"color\":\"yellow\"}',type:'finish'}]}"
  25. }
  26. ]
  27. },
  28. {
  29. "type": "minecraft:item",
  30. "name": "minecraft:armor_stand",
  31. "weight": 5,
  32. "functions": [
  33. {
  34. "function": "minecraft:set_nbt",
  35. "tag": "{conditions:[{name:'{\"text\":\"G≥20\",\"color\":\"green\"}',type:'green_ge',value:20s}],events:[{name:'{\"text\":\"完成游戏!\",\"color\":\"yellow\"}',type:'finish'}]}"
  36. }
  37. ]
  38. },
  39. {
  40. "type": "minecraft:item",
  41. "name": "minecraft:armor_stand",
  42. "weight": 5,
  43. "functions": [
  44. {
  45. "function": "minecraft:set_nbt",
  46. "tag": "{conditions:[{name:'{\"text\":\"B≥20\",\"color\":\"blue\"}',type:'blue_ge',value:20s}],events:[{name:'{\"text\":\"完成游戏!\",\"color\":\"yellow\"}',type:'finish'}]}"
  47. }
  48. ]
  49. }
  50. ]
  51. }
  52. ]
  53. }