UID812845性别保密经验 EP铁粒 粒回帖0主题精华在线时间 小时注册时间2023-1-8最后登录1970-1-1
| 65铁粒 我做了个剑,但是技能放不了,有谁能告诉我出啥问题了吗,1.20版,有假日创作者,理想效果是使用技能后执行指令/execute as @p at @s run fill ~5 ~ ~5 ~-5 ~ ~-5 fire,指令我试了没问题。- {
- "format_version": "1.19.80",
- "minecraft:item": {
- "description": {
- "category": "equipment",
- "identifier": "blazingfields:prairie_sword"
- },
- "components": {
- "minecraft:icon": {
- "texture": "blazingfields_prairie_sword"
- },
- "minecraft:creative_category": {
- "parent": "itemGroup.name.sword"
- },
- "minecraft:max_stack_size": 1,
- "minecraft:hand_equipped": true,
- "minecraft:allow_off_hand": true,
- "minecraft:foil": false,
- "minecraft:durability": {
- "max_durability": 6525,
- "damage_chance": {
- "min": 60,
- "max": 100
- }
- },
- "minecraft:repairable": {
- "repair_items": [
- {
- "items": [
- "blazingfields:prairie_fire"
- ],
- "repair_amount": 1000
- },
- {
- "items": [
- "blazingfields:prairie_sword"
- ],
- "repair_amount": "context.other->query.remaining_durability + 0.2 * context.other->query.max_durability"
- }
- ]
- },
- "minecraft:mining_speed": 1,
- "minecraft:damage": 12,
- "minecraft:enchantable": {
- "value": 15,
- "slot": "sword"
- },
- "minecraft:can_destroy_in_creative": true,
- "minecraft:weapon": {
- "on_hurt_entity": {
- "event": "hurt"
- },
- "on_not_hurt_entity": {
- "event": "hurt"
- },
- "on_hit_block": {
- "event": "hurt"
- }
- },
- "minecraft:on_use": {
- "event": "on_use_event"
- },
- "minecraft:render_offsets": {
- "main_hand": {
- "third_person": {
- "scale": [
- 0.01,
- 0.01,
- 0.01
- ]
- },
- "first_person": {
- "scale": [
- 0.00379999999999772,
- 0.00379999999999772,
- 0.00379999999999772
- ]
- }
- },
- "off_hand": {
- "third_person": {
- "scale": [
- 0.01,
- 0.01,
- 0.01
- ]
- },
- "first_person": {
- "scale": [
- 0.00379999999999772,
- 0.00379999999999772,
- 0.00379999999999772
- ]
- }
- }
- },
- "tag:minecraft:is_sword": {},
- "minecraft:display_name": {
- "value": "§c燎原之剑"
- },
- "minecraft:cooldown": {
- "category": "action_cooldown",
- "duration": 1
- }
- },
- "events": {
- "on_use_event": {
- "sequence": [
- {
- "run_command": {
- "command": "/execute as @p at @s run fill ~5 ~ ~5 ~-5 ~ ~-5 fire",
- "target": "self"
- }
- },
- {
- "damage": {
- "type": "magic",
- "amount": 1,
- "target": "self"
- }
- }
- ]
- },
- "hurt": {
- "damage": {
- "type": "magic",
- "amount": 1,
- "target": "self"
- }
- }
- }
- }
- }
复制代码 |
|