1
0
Fork 0
MineClone2/mods/ITEMS/mcl_end
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
..
locale Add polish translation of mcl_end 2021-04-13 19:26:24 +02:00
models Proper model 2020-07-26 13:28:13 +02:00
sounds Add sound for chorus fruit teleport 2018-01-23 04:18:19 +01:00
textures Shuffle pixels in mcl_end_crystal_beam.png 2022-04-16 01:24:04 +02:00
building.lua fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
chorus_plant.lua Fix warning in `mcl_end` 2021-07-10 10:16:55 +08:00
end_crystal.lua fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
eye_of_ender.lua fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
init.lua Added End Crystal 2020-07-25 13:32:35 +02:00
mod.conf add API for mcl_wip 2021-03-07 00:42:34 +01:00