add template readme, update script

This commit is contained in:
NULL511 2024-06-13 14:44:09 -04:00
parent 5b03658c41
commit 52594451f0
3 changed files with 9 additions and 0 deletions

2
shaders/template/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
potater.exe
potater

View File

@ -0,0 +1,2 @@
## Editing Property Templates
The block, item, and entity property files are generated with a template builder. To modify these templates, you will need [PoTater](https://github.com/Null-MC/PoTater) to regenerate the final property files. Download the latest [release](https://github.com/Null-MC/PoTater/releases) binary for your system, and place it in this `~/template` folder. Then run `~/update.sh` as needed to generate the new property files.

View File

@ -0,0 +1,5 @@
#!/bin/bash
./potater item '../item.properties' '../lib/items.glsl' -t './item.properties'
./potater block '../block.properties' '../lib/blocks.glsl' -t './block.properties'
./potater entity '../entity.properties' '../lib/entities.glsl' -t './entity.properties'