From 66813a36b8f3726f1379482bc022157a5bc26ea3 Mon Sep 17 00:00:00 2001 From: Sfan5 Date: Wed, 26 Mar 2014 17:36:23 +0100 Subject: [PATCH] Clarify autogenerating colors --- autogenerating-colors.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autogenerating-colors.txt b/autogenerating-colors.txt index eccebb0..9479246 100644 --- a/autogenerating-colors.txt +++ b/autogenerating-colors.txt @@ -86,15 +86,15 @@ while read -r p; do set -- junk $p shift if [[ ! $1 == "#" && ! $1 == "" ]]; then - echo $1 `python /path/to/avgcolor.py $(find /minetest/dir -type f -name $2)` + echo $1 `python /path/to/avgcolor.py $(find /path/to/minetest/directory/ -type f -name $2)` fi done < nodes.txt > colors.txt # Use nicer colors for water and lava sed -re 's/^default:water_([a-z]+) [0-9 ]+$/default:water_\1 39 66 106/' < colors.txt > tmp$$ && mv tmp$$ colors.txt sed -re 's/^default:lava_([a-z]+) [0-9 ]+$/default:lava_\1 255 100 0/' < colors.txt > tmp$$ && mv tmp$$ colors.txt ==INSTRUCTIONS== -1) Get avgcolors.py running +1) Make sure avgcolors.py outputs the usage instructions 2) Add the dumpnodes mod to Minetest 3) Create a world and load dumpnodes & all mods you want to have a color entry for 4) Execute /dumpnodes ingame -5) Use the command to generate colors.txt +5) Use the command to generate colors.txt (obviously don't forget to replace /path/to/... with the actual path)