ThownFireball -- 丢出火焰弹

简介

为了增加游戏趣味性,与一直感叹火焰弹为何无法丢出的问题,我利用最近正在学习的Skript插件写出了一个简单的脚本

——ThownFireball

功能

当玩家手持火焰弹并Shift右键时会丢出这个火焰弹(效果等同于恶魂吐出的火球,并且可以完成进度/成就“见鬼去吧”(用一个火球打败恶魂)

丢出火球后,玩家会获得虚弱的debuff

(buff时长可以叠加)


源码

options:
	#冷却时间
	cooldown: 3 seconds
	#虚弱时间
	debufftimes: 5 seconds
on right click with a fire charge:
	if player is sneaking:
		set {_cooldown} to difference between {cd.%player%.fireball} and now
		if {_cooldown} is less than {@cooldown}:
			send action bar "&c&l火焰弹冷却中" to player
			stop
		else:
			remove a fire charge from player's inventory
			shoot a fireball from the player with speed 0.001
			apply weakness of tier 2 to the player for {@debufftimes}
			set {cd.%player%.fireball} to now
	else:
		stop
on load:
	send "[ThrownFireball] &b丢出火焰弹 &a已加载" to console
on unload:
	send "[ThrownFireball] &b丢出火焰弹 &c已卸载" to console

下载

地址1(百度网盘)

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

密码:im0o

地址2(本地下载)

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

Q.关于广告

A.作者也是要恰饭的嘛


后记

本脚本源码已发布至Minecraft插件百科中的Skript目录内,欢迎查阅。

地址:http://mineplugin.org/Skript


支持作者

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

评论

评论加载中…

输入关键词开始搜索。

选择Enter 打开Esc 关闭CtrlK 唤起