Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mod = RegisterMod("Mod", 1)
- local game = Game()
- local function Mod:onPlayerInit(player, trinket)
- if game:GetFrameCount() == 1 then
- local player = Isaac.GetPlayer(0)
- local trinket = math.random(125)
- player:ToPlayer():AddTrinket(TrinketType(trinket))
- end
- end
- Mod:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, Mod.onPlayerInit)
Add Comment
Please, Sign In to add comment