开启辅助访问     
收藏本站

站内搜索

搜索

Minecraft(我的世界)苦力怕论坛

[游戏相关] 我做addon的时候出问题了,技能用不了

 发表于 2025-2-2 19:35:24 来自手机|显示全部楼层|阅读模式 IP:黑龙江省
65铁粒
我做了个剑,但是技能放不了,有谁能告诉我出啥问题了吗,1.20版,有假日创作者,理想效果是使用技能后执行指令/execute as @p at @s run fill ~5 ~ ~5 ~-5 ~ ~-5 fire,指令我试了没问题。
  1. {
  2.   "format_version": "1.19.80",
  3.   "minecraft:item": {
  4.     "description": {
  5.       "category": "equipment",
  6.       "identifier": "blazingfields:prairie_sword"
  7.     },
  8.     "components": {
  9.       "minecraft:icon": {
  10.         "texture": "blazingfields_prairie_sword"
  11.       },
  12.       "minecraft:creative_category": {
  13.         "parent": "itemGroup.name.sword"
  14.       },
  15.       "minecraft:max_stack_size": 1,
  16.       "minecraft:hand_equipped": true,
  17.       "minecraft:allow_off_hand": true,
  18.       "minecraft:foil": false,
  19.       "minecraft:durability": {
  20.         "max_durability": 6525,
  21.         "damage_chance": {
  22.           "min": 60,
  23.           "max": 100
  24.         }
  25.       },
  26.       "minecraft:repairable": {
  27.         "repair_items": [
  28.           {
  29.             "items": [
  30.               "blazingfields:prairie_fire"
  31.             ],
  32.             "repair_amount": 1000
  33.           },
  34.           {
  35.             "items": [
  36.               "blazingfields:prairie_sword"
  37.             ],
  38.             "repair_amount": "context.other->query.remaining_durability + 0.2 * context.other->query.max_durability"
  39.           }
  40.         ]
  41.       },
  42.       "minecraft:mining_speed": 1,
  43.       "minecraft:damage": 12,
  44.       "minecraft:enchantable": {
  45.         "value": 15,
  46.         "slot": "sword"
  47.       },
  48.       "minecraft:can_destroy_in_creative": true,
  49.       "minecraft:weapon": {
  50.         "on_hurt_entity": {
  51.           "event": "hurt"
  52.         },
  53.         "on_not_hurt_entity": {
  54.           "event": "hurt"
  55.         },
  56.         "on_hit_block": {
  57.           "event": "hurt"
  58.         }
  59.       },
  60.       "minecraft:on_use": {
  61.         "event": "on_use_event"
  62.       },
  63.       "minecraft:render_offsets": {
  64.         "main_hand": {
  65.           "third_person": {
  66.             "scale": [
  67.               0.01,
  68.               0.01,
  69.               0.01
  70.             ]
  71.           },
  72.           "first_person": {
  73.             "scale": [
  74.               0.00379999999999772,
  75.               0.00379999999999772,
  76.               0.00379999999999772
  77.             ]
  78.           }
  79.         },
  80.         "off_hand": {
  81.           "third_person": {
  82.             "scale": [
  83.               0.01,
  84.               0.01,
  85.               0.01
  86.             ]
  87.           },
  88.           "first_person": {
  89.             "scale": [
  90.               0.00379999999999772,
  91.               0.00379999999999772,
  92.               0.00379999999999772
  93.             ]
  94.           }
  95.         }
  96.       },
  97.       "tag:minecraft:is_sword": {},
  98.       "minecraft:display_name": {
  99.         "value": "§c燎原之剑"
  100.       },
  101.       "minecraft:cooldown": {
  102.         "category": "action_cooldown",
  103.         "duration": 1
  104.       }
  105.     },
  106.     "events": {
  107.       "on_use_event": {
  108.         "sequence": [
  109.           {
  110.             "run_command": {
  111.               "command": "/execute as @p at @s run fill ~5 ~ ~5 ~-5 ~ ~-5 fire",
  112.               "target": "self"
  113.             }
  114.           },
  115.           {
  116.             "damage": {
  117.               "type": "magic",
  118.               "amount": 1,
  119.               "target": "self"
  120.             }
  121.           }
  122.         ]
  123.       },
  124.       "hurt": {
  125.         "damage": {
  126.           "type": "magic",
  127.           "amount": 1,
  128.           "target": "self"
  129.         }
  130.       }
  131.     }
  132.   }
  133. }
复制代码

苦力怕论坛,感谢有您~

本版积分规则

本站
关于我们
联系我们
坛史纲要
官方
哔哩哔哩
技术博客
下载
网易版
安卓版
JAVA
反馈
意见建议
教程中心
更多
捐助本站
QQ群
QQ群

QQ群

访问手机版

访问手机版

手机版|小黑屋|系统状态|klpbbs.com

| 由 木韩网络 提供支持 | GMT+8, 2026-6-23 23:21

声明:本站与Mojang以及微软公司没有从属关系

Powered by Discuz! X3.4