简介

在UHC极限生存中,为了简化一些难度,我和朋友商量写出了这个脚本——GoldenMelon

功能

当右键金西瓜的时候,玩家会获得失明效果与生命恢复效果,并且会消耗1个金西瓜,进入冷却

注:生命恢复效果与失明效果可以设置持续时间,效果可以叠加


源码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
options:
#单次回血等级
regain: 2
#buff持续时间
time: 2 seconds
#单次饱食度恢复
beefs: 1
#两次之间的冷却
cooldown: 5 seconds
#失明时间
debufftime: 10 seconds

on right click with a gold melon:
set {_cd} to difference between {cd.%player%.melon} and now
if {_cd} is less than {@cooldown}:
send action bar "&6&l这个食物还在冷却中!" to player
stop
else:
remove a gold melon from player's inventory
apply regeneration of tier {@regain} to the player for {@time}
apply blindness of tier 2 to the player for {@debufftime}
feed the player by {@beefs} beefs
set {cd.%player%.melon} to now
on load:
send "[GoldenMelon] &e可食用的金西瓜 &a已加载" to console
on unload:
send "[GoldenMelon] &e可食用的金西瓜 &c已卸载" to console

下载

地址1(百度网盘):

链接:http://tonancos.com/3efs

密码:im0o

地址2(本地下载):

链接:http://im0o.top/assets/download/GoldenMelon.sk

Q.关于广告

A.作者也是要恰饭的嘛


支持作者

你可以通过点击下方的“赞赏”按钮来支持我~ 感谢支持