Skip to content
Permalink
Browse files
Update colors.txt
  • Loading branch information
sfan5 committed May 1, 2015
1 parent a361e4d commit 6e30d4702c50809118f42aac0380d4e3c3c3044c
Show file tree
Hide file tree
Showing 2 changed files with 3,224 additions and 1,690 deletions.
@@ -87,10 +87,12 @@ while read -r p; do
shift
if [[ ! $1 == "#" && ! $1 == "" ]]; then
echo $1 `python /path/to/avgcolor.py $(find /path/to/minetest/directory/ -type f -name $2)`
echo $1 1>&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 128 224/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
sed -re 's/^default:river_water_([a-z]+) [0-9 ]+$/default:water_\1 39 66 106 128 224/' < 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
sed -re 's/^default:([a-z_]*)glass ([0-9 ]+)$/default:\1glass \2 64 16/' < colors.txt > tmp$$ && mv tmp$$ colors.txt
==INSTRUCTIONS==

0 comments on commit 6e30d47

Please sign in to comment.