我有一个表格不正确的 .yml 文件。这是它的外观:
explosivearrow:
spell-class: ".instant.ProjectileSpell"
name: explosivearrow
spell-icon: arrow
description: Cause an explosion where an arrow lands
cast-item: blaze_rod
cooldown: 1
projectile: arrow
velocity: 0
require-hit-entity: false
cancel-damage: true
remove-projectile: true
max-distance: 30
spells: [explode]
cost:
- mana 30
str-cost: 30 mana
str-cast-self: Shebang! Take that one!
这就是它需要的样子:
explosivearrow:
spell-class: ".instant.ProjectileSpell"
name: explosivearrow
spell-icon: arrow
description: Cause an explosion where an arrow lands
cast-item: blaze_rod
cooldown: 1
projectile: arrow
velocity: 0
require-hit-entity: false
cancel-damage: true
remove-projectile: true
max-distance: 30
spells: [explode]
cost:
- mana 30
str-cost: 30 mana
str-cast-self: Shebang! Take that one!
所以基本上我需要删除文件的第一列。我可以手动完成,但我真的不想从 1519 行退格 4 个空格...有人可以帮我吗?这是我的第一个问题,所以如果我做错了什么,我深表歉意。