1
0
Fork 0
VoxeLibre-Fork-Pixel/mods
Nils Dagsson Moskopp 34b5002fc8
Shuffle pixels in mcl_end_crystal_beam.png
A user claimed that this texture was a texture from Minecraft 1.8.9 –
see <MineClone2/MineClone2#2099> for
further details. I have not verified that but I noticed that in commit
152e552458 the file was replaced with a
file containing the exact same pixels.

A visual inspection confirms that the file contains noise, so it is not
clear if it is even copyrightable. However, to ensure that it could not
be identical to a file from Minecraft, To get noise of the same quality,
I have shuffled all its pixels with the following POSIX sh shell script:

LANG=C
PREFIX=mcl_end_crystal_beam
convert $PREFIX.png $PREFIX.pnm
<$PREFIX.pnm  >$PREFIX.plainpnm pnmtoplainpnm
<$PREFIX.plainpnm >$PREFIX.seed tr '1234567890 ' ' 1356902468'
(
 <$PREFIX.plainpnm head -n+3
 <$PREFIX.plainpnm tail -n+4 \
  |tr ' ' '\n' \
  |shuf --random-source $PREFIX.seed
) >$PREFIX.shuffled.plainpnm

I then opened mcl_end_crystal_beam.shuffled.plainpnm using GIMP,
converted the color black to tranparency and saved the image as a
paletted PNG (which yields a smaller filesize than a grayscale PNG).
2022-04-16 01:24:04 +02:00
..
CORE Tiny comment fix. 2022-03-19 03:16:15 +01:00
ENTITIES Make shields work with all mobs 2022-04-09 16:21:22 +02:00
ENVIRONMENT mcl_weather: fix typo/crash 2022-04-08 06:23:14 +02:00
HELP ITEMS/mcl_anvils: fix renaming items w/o desc… 2022-03-05 15:35:39 +00:00
HUD Add shield 2022-03-15 15:58:27 +01:00
ITEMS Shuffle pixels in mcl_end_crystal_beam.png 2022-04-16 01:24:04 +02:00
MAPGEN Remove `settlements_in_world` and `settlements.txt` 2022-04-02 21:52:03 +02:00
MISC Fix typo and interact bug? 2022-03-27 18:08:43 +02:00
PLAYER Merge branch 'master' into shields2 2022-03-28 12:27:57 +00:00