webbukkit / DynmapBlockScan

Tool to scan post-1.8 MC blocks and JSON model data to automatically generate Dynmap models
61 stars 30 forks source link

[1.15.2] Incorrect leaf colours #45

Open Bahnschrift opened 4 years ago

Bahnschrift commented 4 years ago

I'm using Autumnity mod, which adds some bright orange, red and yellow leaves to the game. However, these render as green with dynmap after using DynmapBlockScan.

DynmapBlockScan produces this:

texture:id=txt0007,filename=assets/autumnity/textures/block/maple_leaves.png,xcount=1,ycount=1
texture:id=txt0008,filename=assets/minecraft/textures/colormap/foliage.png,xcount=1,ycount=1,format=BIOME
block:id=%yellow_maple_leaves,data=0,data=1,data=2,data=3,data=4,data=5,data=6,data=7,data=8,data=9,data=10,data=11,data=12,data=13,patch0=0:txt0007,patch1=0:txt0007,patch2=0:txt0007,patch3=0:txt0007,patch4=0:txt0007,patch5=0:txt0007,blockcolor=txt0008,stdrot=true
block:id=%maple_leaves,data=0,data=1,data=2,data=3,data=4,data=5,data=6,data=7,data=8,data=9,data=10,data=11,data=12,data=13,patch0=0:txt0007,patch1=0:txt0007,patch2=0:txt0007,patch3=0:txt0007,patch4=0:txt0007,patch5=0:txt0007,blockcolor=txt0008,stdrot=true
block:id=%red_maple_leaves,data=0,data=1,data=2,data=3,data=4,data=5,data=6,data=7,data=8,data=9,data=10,data=11,data=12,data=13,patch0=0:txt0007,patch1=0:txt0007,patch2=0:txt0007,patch3=0:txt0007,patch4=0:txt0007,patch5=0:txt0007,blockcolor=txt0008,stdrot=true
block:id=%orange_maple_leaves,data=0,data=1,data=2,data=3,data=4,data=5,data=6,data=7,data=8,data=9,data=10,data=11,data=12,data=13,patch0=0:txt0007,patch1=0:txt0007,patch2=0:txt0007,patch3=0:txt0007,patch4=0:txt0007,patch5=0:txt0007,blockcolor=txt0008,stdrot=true

As far as I can tell, the base texture (maple_leaves.png) is colourless, and in game has it's colour set by code instead of by a colourmap, DynmapBlockScan assumes that it is using a colourmaps and gives dynmap the vanilla colourmap (txt0008).

Since DynmapBlockScan can't seem to detect the colour, a potential fix could be to manually set the colour. Is there any way to do that?