纯AI,0手工,理论1.17 ~ 26.x,Spigot / Paper / Purpur 1.17 及以上
载入插件后
OP使用/pig a x y z 召唤小猪a,
/pig b x y z 召唤小猪b,
/pig a off/pig b off 关闭自动复活
A猪猪采用原版算法,血量不要超过1024
B猪猪采用虚拟算法,同时免疫远程,血量随便填,也不用担心伤害粒子太多
ab猪猪均可单独配置
配置如下
# 猪的显示名字(支持 & 颜色代码)
display-name: "&d小猪历"
# 猪的血量
health: 500
# 击杀后多少秒重新召唤
respawn-delay-seconds: 10
# 击杀后执行的指令列表(以控制台身份执行,支持 %player% 占位符替换为击杀者名字)
kill-commands:
- "give %player% cooked_porkchop 1"
- "money give %player% 23.3"
# 荆棘反伤配置
thorns:
# 是否开启反伤
enabled: true
# 荆棘等级(影响固定反伤伤害,10 = 每次反伤10点)
level: 10
# 反伤触发概率(0-100)
chance: 100
# 是否按受到伤害的比例反伤(true时用ratio,false时用固定level伤害)
use-ratio: false
# 反伤比例(0.5 = 反伤受到伤害的50%)
ratio: 0.5
# 抗性提升配置(每级减伤20%,4级=减伤80%)
resistance:
# 是否开启抗性提升
enabled: true
# 抗性提升等级(3 = 抗性提升III,减伤60%)
level: 3
# 生命回复配置
regeneration:
# 是否开启生命回复
enabled: true
# 生命回复等级(2 = 生命回复II,约每1.25秒回1点血)
level: 2
载入插件后
OP使用/pig a x y z 召唤小猪a,
/pig b x y z 召唤小猪b,
/pig a off/pig b off 关闭自动复活
A猪猪采用原版算法,血量不要超过1024
B猪猪采用虚拟算法,同时免疫远程,血量随便填,也不用担心伤害粒子太多
ab猪猪均可单独配置
配置如下
# 猪的显示名字(支持 & 颜色代码)
display-name: "&d小猪历"
# 猪的血量
health: 500
# 击杀后多少秒重新召唤
respawn-delay-seconds: 10
# 击杀后执行的指令列表(以控制台身份执行,支持 %player% 占位符替换为击杀者名字)
kill-commands:
- "give %player% cooked_porkchop 1"
- "money give %player% 23.3"
# 荆棘反伤配置
thorns:
# 是否开启反伤
enabled: true
# 荆棘等级(影响固定反伤伤害,10 = 每次反伤10点)
level: 10
# 反伤触发概率(0-100)
chance: 100
# 是否按受到伤害的比例反伤(true时用ratio,false时用固定level伤害)
use-ratio: false
# 反伤比例(0.5 = 反伤受到伤害的50%)
ratio: 0.5
# 抗性提升配置(每级减伤20%,4级=减伤80%)
resistance:
# 是否开启抗性提升
enabled: true
# 抗性提升等级(3 = 抗性提升III,减伤60%)
level: 3
# 生命回复配置
regeneration:
# 是否开启生命回复
enabled: true
# 生命回复等级(2 = 生命回复II,约每1.25秒回1点血)
level: 2