-
Notifications
You must be signed in to change notification settings - Fork 2
Modding
Dana edited this page Aug 3, 2024
·
17 revisions
There are two ways of adding new pattern, either by creating new item that will hold new patterns or patching existing "pattern holder" (look into assets/flags/itemtypes/bannerpattern.json
).
For example, assets/flags/blocktypes/banner.json
needs two 32x32 grayscale textures.
Other banners might require more, less or different sizes of textures.
In this tutorial we add examplepattern
pattern.
First we need to add those grayscale textures to temporary folder
somemod/textures/block/banner/grayscales/pattern/examplepattern/grayscale-top.png
somemod/textures/block/banner/grayscales/pattern/examplepattern/grayscale-bot.png
Then we add two textures for banner itself
[
{
"op": "addmerge",
"path": "/attributes/textures/topsymbol-examplepattern",
"file": "flags:blocktypes/banner.json",
"value": { "base": "somemod:block/banner/grayscales/pattern/examplepattern/{color}-top" }
},
{
"op": "addmerge",
"path": "/attributes/textures/botsymbol-examplepattern",
"file": "flags:blocktypes/banner.json",
"value": { "base": "somemod:block/banner/grayscales/pattern/examplepattern/{color}-bot" }
}
]
TODO
TODO
Once steps 1 & 2 are done, run .flags gentex
command.
Put generated textures into somemod:block/banner/pattern/ folder (different than grayscales) and then replace texture paths to your new textures