Created
February 25, 2021 04:57
-
-
Save gh-doot/1e822fe5584c41017611f3af60a6bd2f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rocketThrowerObserver() | |
local q = Events.collect("SwingArmEvent") | |
while true do | |
local e = q:next() | |
if e.item.displayName == "Rocket Thrower" then | |
local cmd = "/lua p=Entities.find('@p[name=%s]')[1]; rocket(p)" | |
spell:execute(cmd, e.player.name) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment