codewarrior0/pymclevel — Issue #59: Reduce `tex_extra` special cases in minecraft.yaml
Author: flying-sheep
Created: 2011-10-30 13:47:26+00:00
State: open

The crops’ texture is simply defined by the `data` value. The same goes for nether wart. So we shouldn’t introduce special cases if we can express it with general-case syntax like this (crops):

```YAML
- id: 59
idStr: CROPS
name: Crops
aka: Wheat
mapcolor: [146, 192, 0]
tex: [15, 5]
type: CROPS
tex_extra:
data:
0: {tex: [8, 5]}
1: {tex: [9, 5]}
2: {tex: [10, 5]}
3: {tex: [11, 5]}
4: {tex: [12, 5]}
5: {tex: [13, 5]}
6: {tex: [14, 5]}
7: {tex: [15, 5]}
opacity: 0
```

The Enchantment table could reuse `tex_direction`, the ender portal, too (but this one should retain the “eye” `tex_extra`). Maybe even the bed and the pistons in some way.