Get Items/Effects under mouse
#31
--[[
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