https://github.com/techdudie/vfcrates
vf-crates
https://github.com/techdudie/vfcrates
Last synced: 6 months ago
JSON representation
vf-crates
- Host: GitHub
- URL: https://github.com/techdudie/vfcrates
- Owner: TechDudie
- License: gpl-3.0
- Created: 2022-03-11T23:19:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-15T18:58:09.000Z (over 3 years ago)
- Last Synced: 2025-06-29T12:43:10.014Z (7 months ago)
- Language: Lua
- Size: 43.9 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vfcrates
vfcrates, a mod by TechDudie
API:
Registering a key:
```lua
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.