Introduction
BlizzLib is a personal library that I made to remove some of the more tedious aspects of Factorio modding, or just shorten specific syntaxes to make it faster. This library is very lightweight, as I'm not good at Lua, and the only mods I would make are more lightweight ones anyway. This is a tool for myself that I simply made public in case anyone else wanted to use it, too. If you have issues with it, I most likely won't change it. Feel free to suggest features still, I read EVERYTHING!
Setting up
In your mods data.lua file, put these 2 lines at the top:
mod_name = "your_mod_name"
local Blizz = require("__blizzlib__/lib-funcs")
You can choose to your mod's write code in data.lua or in other files. If you do other files, you need to put them in a folder named prototypes, it must start with
local Blizz = require("__blizzlib__/lib-funcs")
and in data.lua, you must put
require("prototypes.file_name")
(example: require("prototypes.items"))
Icon Referral
In systems that use icons, the format depends on if you wanna use vanilla icons or your own.
Vanilla Icons
icon = BASE.iron-plate
Your Own Icons
You need to put a 64x64 .png image in a folder in your mod named "graphics".
icon = "icon_name"