add_red.json 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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\":\"着火1秒\",\"color\":\"yellow\"}',type:'on_fire',value:4s}],events:[{name:'{\"text\":\"R+3\",\"color\":\"red\"}',type:'add_red',value:3s}]}"
  14. }
  15. ]
  16. },
  17. {
  18. "type": "minecraft:item",
  19. "name": "minecraft:armor_stand",
  20. "weight": 1,
  21. "functions": [
  22. {
  23. "function": "minecraft:set_nbt",
  24. "tag": "{conditions:[{name:'{\"text\":\"着火2秒\",\"color\":\"yellow\"}',type:'on_fire',value:8s}],events:[{name:'{\"text\":\"R+3\",\"color\":\"red\"}',type:'add_red',value:3s}]}"
  25. }
  26. ]
  27. },
  28. {
  29. "type": "minecraft:item",
  30. "name": "minecraft:armor_stand",
  31. "weight": 1,
  32. "functions": [
  33. {
  34. "function": "minecraft:set_nbt",
  35. "tag": "{conditions:[{name:'{\"text\":\"着火2秒\",\"color\":\"yellow\"}',type:'on_fire',value:8s}],events:[{name:'{\"text\":\"R+4\",\"color\":\"red\"}',type:'add_red',value:4s}]}"
  36. }
  37. ]
  38. },
  39. {
  40. "type": "minecraft:item",
  41. "name": "minecraft:armor_stand",
  42. "weight": 15,
  43. "functions": [
  44. {
  45. "function": "minecraft:set_nbt",
  46. "tag": "{conditions:[{name:'{\"text\":\"站在火中1秒\",\"color\":\"yellow\"}',type:'in_fire',value:4s}],events:[{name:'{\"text\":\"R+4\",\"color\":\"red\"}',type:'add_red',value:4s}]}"
  47. }
  48. ]
  49. },
  50. {
  51. "type": "minecraft:item",
  52. "name": "minecraft:armor_stand",
  53. "weight": 1,
  54. "functions": [
  55. {
  56. "function": "minecraft:set_nbt",
  57. "tag": "{conditions:[{name:'{\"text\":\"站在火中2秒\",\"color\":\"yellow\"}',type:'in_fire',value:8s}],events:[{name:'{\"text\":\"R=10\",\"color\":\"red\"}',type:'set_red',value:10s}]}"
  58. }
  59. ]
  60. },
  61. {
  62. "type": "minecraft:item",
  63. "name": "minecraft:armor_stand",
  64. "weight": 15,
  65. "functions": [
  66. {
  67. "function": "minecraft:set_nbt",
  68. "tag": "{conditions:[{name:'[{\"text\":\"失去\",\"color\":\"yellow\"},{\"text\":\"❤\",\"color\":\"red\"},{\"text\":\"≥1\",\"color\":\"yellow\"}]',type:'take_damage',value:2s}],events:[{name:'{\"text\":\"R+3\",\"color\":\"red\"}',type:'add_red',value:3s}]}"
  69. }
  70. ]
  71. },
  72. {
  73. "type": "minecraft:item",
  74. "name": "minecraft:armor_stand",
  75. "weight": 1,
  76. "functions": [
  77. {
  78. "function": "minecraft:set_nbt",
  79. "tag": "{conditions:[{name:'[{\"text\":\"失去\",\"color\":\"yellow\"},{\"text\":\"❤\",\"color\":\"red\"},{\"text\":\"≥3\",\"color\":\"yellow\"}]',type:'take_damage',value:6s}],events:[{name:'{\"text\":\"R=15\",\"color\":\"red\"}',type:'set_red',value:15s}]}"
  80. }
  81. ]
  82. }
  83. ]
  84. }
  85. ]
  86. }