vfcrates, a mod by TechDudie
API:
Registering a key:
register_key("silver", loot, texture)
"silver"
is the key name. The key will be called Silver Key
. loot
should be an array, containing the loot table. texture
, well, defines the texture. If it is nil
/not defined, it will look for the texture under textures/vfcrates_KEYNAME_key.png
. If it is a hex RGB color, like #808080
, the key texture will be autogenerated. You can specify a custom texture name, if you want.