effect.json 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. {
  2. "pools": [
  3. {
  4. "rolls": 1,
  5. "entries": [
  6. {
  7. "type": "minecraft:item",
  8. "name": "minecraft:armor_stand",
  9. "weight": 1,
  10. "functions": [
  11. {
  12. "function": "minecraft:set_nbt",
  13. "tag": "{conditions:[{name:'{\"text\":\"R≥5\",\"color\":\"red\"}',type:'red_ge',value:20s},{name:'{\"text\":\"站在地上\",\"color\":\"yellow\"}',type:'on_ground',value:1s}],events:[{name:'{\"text\":\"脚下方块变为TNT\",\"color\":\"yellow\"}',type:'place_tnt'},{name:'{\"text\":\"R-1\",\"color\":\"red\"}',type:'add_red',value:-1s}]}"
  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\":\"G<5\",\"color\":\"green\"}',type:'green_l',value:5s},{name:'{\"text\":\"站在地上\",\"color\":\"yellow\"}',type:'on_ground',value:1s}],events:[{name:'{\"text\":\"漂浮5秒\",\"color\":\"yellow\"}',type:'effect',value:'float_lvl1_5s'},{name:'{\"text\":\"G+1\",\"color\":\"green\"}'}]}"
  25. }
  26. ]
  27. }
  28. ]
  29. }
  30. ]
  31. }