ItemPrimordialEdge
原初之刃:高伤剑 + 右键范围吸取,CR 创造稀有度
基本信息
| 属性 | 值 |
|---|---|
| 路径 | taintedmagic.common.items.tools.ItemPrimordialEdge |
| 类型 | ItemSword |
| 接口 | IWarpingGear、IRepairable |
| 材质 | toolMatPrimal(攻击加成 14.5F,耐久 512) |
| 稀有度 | rarityCreation |
| Warp | getWarp() 返回 5 |
命中效果(hitEntity)
对目标施加两种 potion,均为 5 tick(0.25 秒) 持续、等级 1:
Potion.wither(凋零)Potion.weakness(虚弱)
右键「原初吸取」(onUsingTick)
EnumAction.block,长按生效。每 tick 扫描以玩家为中心、
expand(15.0D, 15.0D, 15.0D) 的 15 格半径 AABB,对每个存活且非无敌的实体:
- 距离平方
< 2.0时造成DamageSource.magic1.0F 伤害 - 按
var11 = 1.0 - dist / 20.0平方衰减施加击退, X/Z 分量0.20D、Y 分量0.30D
同时每 tick 播放 thaumcraft:brain 音效(音量 0.05F)。
自我修复(onUpdate)
服务端、物品已损坏、且 e.ticksExisted % 20 == 0 时
调用 damageItem(-1, ...),即每 20 tick 修复 1 点耐久。
相关条目
- ItemKatana - 同为
IWarpingGear的蓄力武器 - LibToolMaterials -
toolMatPrimal数值