Subfolders for mod media
For big mods it would be wise to allow subfolders for mod media, so that all textures/sounds don't have to be added to the /textures and /sounds folder but rather have a possible structure like this:
Usage sample:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
/textures/doors/
/textures/foliage/
/textures/ores/
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
/sounds/wood/
/sounds/metal/
/sounds/foley/
Usage sample:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("default:grass", {
description = "Grass",
tiles = {"foliage/grass.png"}
})