Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
2.2K
Get Items/Effects under mouse #31
336b | 11 lines.
 --[[
  Script made by Lee (Discord: l33_) - www.trainorcreations.com
  If you want to support my work, feel free to donate at https://trainorcreations.com/donate
  PS. Stop ripping off my work and selling it as your own.
 ]]--
hotkey("f5", "get items/effects under mouse", function()
    local tile = getTileUnderCursor()
    if tile then
        for i, fx in ipairs(tile:getEffects()) do
            warn("fx: " .. fx:getId())
        end
        for i, fx in ipairs(tile:getItems()) do
            warn("item: " .. fx:getId())
        end
    end
end)

26 May 2021
Ads