1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
|
package main
import (
"github.com/kch42/gomcmap/mcmap"
"github.com/mattn/go-gtk/gdk"
)
var blockColors = map[mcmap.BlockID]*gdk.Color{
mcmap.BlkStone: gdk.NewColor("#666666"),
mcmap.BlkGrassBlock: gdk.NewColor("#00aa00"),
mcmap.BlkDirt: gdk.NewColor("#644804"),
mcmap.BlkCobblestone: gdk.NewColor("#7a7a7a"),
mcmap.BlkWoodPlanks: gdk.NewColor("#a4721c"),
mcmap.BlkBedrock: gdk.NewColor("#111111"),
mcmap.BlkWater: gdk.NewColor("#0000ff"),
mcmap.BlkStationaryWater: gdk.NewColor("#0000ff"),
mcmap.BlkLava: gdk.NewColor("#ff4400"),
mcmap.BlkStationaryLava: gdk.NewColor("#ff4400"),
mcmap.BlkSand: gdk.NewColor("#f1ee85"),
mcmap.BlkGravel: gdk.NewColor("#9ba3a9"),
mcmap.BlkGoldOre: gdk.NewColor("#ffa200"),
mcmap.BlkIronOre: gdk.NewColor("#e1e1e1"),
mcmap.BlkCoalOre: gdk.NewColor("#333333"),
mcmap.BlkWood: gdk.NewColor("#a4721c"),
mcmap.BlkLeaves: gdk.NewColor("#57a100"),
mcmap.BlkGlass: gdk.NewColor("#eeeeff"),
mcmap.BlkLapisLazuliOre: gdk.NewColor("#3114e3"),
mcmap.BlkLapisLazuliBlock: gdk.NewColor("#3114e3"),
mcmap.BlkDispenser: gdk.NewColor("#7a7a7a"),
mcmap.BlkSandstone: gdk.NewColor("#f1ee85"),
mcmap.BlkNoteBlock: gdk.NewColor("#a4721c"),
mcmap.BlkBed: gdk.NewColor("#a00000"),
mcmap.BlkPoweredRail: gdk.NewColor("#ff0000"),
mcmap.BlkDetectorRail: gdk.NewColor("#ff0000"),
mcmap.BlkStickyPiston: gdk.NewColor("#91ba12"),
mcmap.BlkCobweb: gdk.NewColor("#dddddd"),
mcmap.BlkGrass: gdk.NewColor("#a0f618"),
mcmap.BlkPiston: gdk.NewColor("#a4721c"),
mcmap.BlkPistonExtension: gdk.NewColor("#a4721c"),
mcmap.BlkWool: gdk.NewColor("#ffffff"),
mcmap.BlkBlockOfGold: gdk.NewColor("#ffa200"),
mcmap.BlkBlockOfIron: gdk.NewColor("#e1e1e1"),
mcmap.BlkTNT: gdk.NewColor("#a20022"),
mcmap.BlkBookshelf: gdk.NewColor("#a4721c"),
mcmap.BlkMossStone: gdk.NewColor("#589b71"),
mcmap.BlkObsidian: gdk.NewColor("#111144"),
mcmap.BlkTorch: gdk.NewColor("#ffcc00"),
mcmap.BlkFire: gdk.NewColor("#ffcc00"),
mcmap.BlkMonsterSpawner: gdk.NewColor("#344e6a"),
mcmap.BlkOakWoodStairs: gdk.NewColor("#a4721c"),
mcmap.BlkChest: gdk.NewColor("#a4721c"),
mcmap.BlkRedstoneWire: gdk.NewColor("#ff0000"),
mcmap.BlkDiamondOre: gdk.NewColor("#00fff6"),
mcmap.BlkBlockOfDiamond: gdk.NewColor("#00fff6"),
mcmap.BlkCraftingTable: gdk.NewColor("#a4721c"),
mcmap.BlkWheat: gdk.NewColor("#e7ae00"),
mcmap.BlkFarmland: gdk.NewColor("#644804"),
mcmap.BlkFurnace: gdk.NewColor("#7a7a7a"),
mcmap.BlkBurningFurnace: gdk.NewColor("#7a7a7a"),
mcmap.BlkSignPost: gdk.NewColor("#a4721c"),
mcmap.BlkWoodenDoor: gdk.NewColor("#a4721c"),
mcmap.BlkLadders: gdk.NewColor("#a4721c"),
mcmap.BlkRail: gdk.NewColor("#dbdbdb"),
mcmap.BlkCobblestoneStairs: gdk.NewColor("#7a7a7a"),
mcmap.BlkWallSign: gdk.NewColor("#a4721c"),
mcmap.BlkLever: gdk.NewColor("#a4721c"),
mcmap.BlkStonePressurePlate: gdk.NewColor("#666666"),
mcmap.BlkIronDoor: gdk.NewColor("#e1e1e1"),
mcmap.BlkWoodenPressurePlate: gdk.NewColor("#a4721c"),
mcmap.BlkRedstoneOre: gdk.NewColor("#a00000"),
mcmap.BlkGlowingRedstoneOre: gdk.NewColor("#ff0000"),
mcmap.BlkRedstoneTorchInactive: gdk.NewColor("#ff0000"),
mcmap.BlkRedstoneTorchActive: gdk.NewColor("#ff0000"),
mcmap.BlkStoneButton: gdk.NewColor("#666666"),
mcmap.BlkSnow: gdk.NewColor("#e5fffe"),
mcmap.BlkIce: gdk.NewColor("#9fdcff"),
mcmap.BlkSnowBlock: gdk.NewColor("#e5fffe"),
mcmap.BlkCactus: gdk.NewColor("#01bc3a"),
mcmap.BlkClay: gdk.NewColor("#767a82"),
mcmap.BlkSugarCane: gdk.NewColor("#12db50"),
mcmap.BlkJukebox: gdk.NewColor("#a4721c"),
mcmap.BlkFence: gdk.NewColor("#a4721c"),
mcmap.BlkPumpkin: gdk.NewColor("#ff7000"),
mcmap.BlkNetherrack: gdk.NewColor("#851c2d"),
mcmap.BlkSoulSand: gdk.NewColor("#796a59"),
mcmap.BlkGlowstone: gdk.NewColor("#ffff00"),
mcmap.BlkNetherPortal: gdk.NewColor("#ff00ff"),
mcmap.BlkJackOLantern: gdk.NewColor("#ff7000"),
mcmap.BlkRedstoneRepeaterInactive: gdk.NewColor("#ff0000"),
mcmap.BlkRedstoneRepeaterActive: gdk.NewColor("#ff0000"),
mcmap.BlkTrapdoor: gdk.NewColor("#a4721c"),
mcmap.BlkStoneBricks: gdk.NewColor("#666666"),
mcmap.BlkHugeBrownMushroom: gdk.NewColor("#b07859"),
mcmap.BlkHugeRedMushroom: gdk.NewColor("#dd0000"),
mcmap.BlkIronBars: gdk.NewColor("#e1e1e1"),
mcmap.BlkGlassPane: gdk.NewColor("#eeeeff"),
mcmap.BlkMelon: gdk.NewColor("#9ac615"),
mcmap.BlkVines: gdk.NewColor("#50720d"),
mcmap.BlkFenceGate: gdk.NewColor("#a4721c"),
mcmap.BlkBrickStairs: gdk.NewColor("#c42500"),
mcmap.BlkStoneBrickStairs: gdk.NewColor("#666666"),
mcmap.BlkMycelium: gdk.NewColor("#7c668c"),
mcmap.BlkLilyPad: gdk.NewColor("#50720d"),
mcmap.BlkNetherBrick: gdk.NewColor("#c42500"),
mcmap.BlkNetherBrickFence: gdk.NewColor("#c42500"),
mcmap.BlkNetherBrickStairs: gdk.NewColor("#c42500"),
mcmap.BlkEnchantmentTable: gdk.NewColor("#222244"),
mcmap.BlkBrewingStand: gdk.NewColor("#666666"),
mcmap.BlkCauldron: gdk.NewColor("#666666"),
mcmap.BlkEndPortal: gdk.NewColor("#000000"),
mcmap.BlkEndPortalBlock: gdk.NewColor("#e0dbce"),
mcmap.BlkEndStone: gdk.NewColor("#e0dbce"),
mcmap.BlkRedstoneLampInactive: gdk.NewColor("#ffff00"),
mcmap.BlkRedstoneLampActive: gdk.NewColor("#ffff00"),
mcmap.BlkSandstoneStairs: gdk.NewColor("#f1ee85"),
mcmap.BlkEmeraldOre: gdk.NewColor("#00c140"),
mcmap.BlkEnderChest: gdk.NewColor("#222244"),
mcmap.BlkBlockOfEmerald: gdk.NewColor("#00c140"),
mcmap.BlkSpruceWoodStairs: gdk.NewColor("#a4721c"),
mcmap.BlkBirchWoodStairs: gdk.NewColor("#a4721c"),
mcmap.BlkJungleWoodStairs: gdk.NewColor("#a4721c"),
mcmap.BlkCommandBlock: gdk.NewColor("#e8ec78"),
mcmap.BlkBeacon: gdk.NewColor("#00fff6"),
mcmap.BlkCobblestoneWall: gdk.NewColor("#7a7a7a"),
mcmap.BlkCarrots: gdk.NewColor("#ff6000"),
mcmap.BlkPotatoes: gdk.NewColor("#c6cd0c"),
mcmap.BlkWoodenButton: gdk.NewColor("#a4721c"),
mcmap.BlkAnvil: gdk.NewColor("#444444"),
mcmap.BlkTrappedChest: gdk.NewColor("#a4721c"),
mcmap.BlkRedstoneComparatorInactive: gdk.NewColor("#ff0000"),
mcmap.BlkRedstoneComparatorActive: gdk.NewColor("#ff0000"),
mcmap.BlkBlockOfRedstone: gdk.NewColor("#ff0000"),
mcmap.BlkNetherQuartzOre: gdk.NewColor("#e7e7e7"),
mcmap.BlkHopper: gdk.NewColor("#444444"),
mcmap.BlkBlockOfQuartz: gdk.NewColor("#e7e7e7"),
mcmap.BlkQuartzStairs: gdk.NewColor("#e7e7e7"),
mcmap.BlkActivatorRail: gdk.NewColor("#ff0000"),
mcmap.BlkDropper: gdk.NewColor("#444444"),
mcmap.BlkStainedClay: gdk.NewColor("#767a82"),
mcmap.BlkHayBlock: gdk.NewColor("#e7ae00"),
mcmap.BlkCarpet: gdk.NewColor("#ffffff"),
mcmap.BlkHardenedClay: gdk.NewColor("#767a82"),
mcmap.BlkBlockOfCoal: gdk.NewColor("#333333"),
mcmap.BlkPackedIce: gdk.NewColor("#63bff4"),
}
var blockCanSnowIn = map[mcmap.BlockID]bool{
mcmap.BlkAir: false,
mcmap.BlkStone: true,
mcmap.BlkGrassBlock: true,
mcmap.BlkDirt: true,
mcmap.BlkCobblestone: true,
mcmap.BlkWoodPlanks: true,
mcmap.BlkSaplings: false,
mcmap.BlkBedrock: true,
mcmap.BlkWater: false,
mcmap.BlkStationaryWater: false,
mcmap.BlkLava: false,
mcmap.BlkStationaryLava: false,
mcmap.BlkSand: true,
mcmap.BlkGravel: true,
mcmap.BlkGoldOre: true,
mcmap.BlkIronOre: true,
mcmap.BlkCoalOre: true,
mcmap.BlkWood: true,
mcmap.BlkLeaves: true,
mcmap.BlkSponge: true,
mcmap.BlkGlass: false,
mcmap.BlkLapisLazuliOre: true,
mcmap.BlkLapisLazuliBlock: true,
mcmap.BlkDispenser: true,
mcmap.BlkSandstone: true,
mcmap.BlkNoteBlock: true,
mcmap.BlkBed: false,
mcmap.BlkPoweredRail: false,
mcmap.BlkDetectorRail: false,
mcmap.BlkStickyPiston: true,
mcmap.BlkCobweb: false,
mcmap.BlkGrass: false,
mcmap.BlkDeadBush: false,
mcmap.BlkPiston: true,
mcmap.BlkPistonExtension: false,
mcmap.BlkWool: true,
mcmap.BlkBlockMovedByPiston: false,
mcmap.BlkDandelion: false,
mcmap.BlkFlower: false,
mcmap.BlkBrownMushroom: false,
mcmap.BlkRedMushroom: false,
mcmap.BlkBlockOfGold: true,
mcmap.BlkBlockOfIron: true,
mcmap.BlkDoubleSlabs: true,
mcmap.BlkSlabs: false,
mcmap.BlkBricks: true,
mcmap.BlkTNT: true,
mcmap.BlkBookshelf: true,
mcmap.BlkMossStone: true,
mcmap.BlkObsidian: true,
mcmap.BlkTorch: false,
mcmap.BlkFire: false,
mcmap.BlkMonsterSpawner: true,
mcmap.BlkOakWoodStairs: true,
mcmap.BlkChest: false,
mcmap.BlkRedstoneWire: false,
mcmap.BlkDiamondOre: true,
mcmap.BlkBlockOfDiamond: true,
mcmap.BlkCraftingTable: true,
mcmap.BlkWheat: false,
mcmap.BlkFarmland: false,
mcmap.BlkFurnace: false,
mcmap.BlkBurningFurnace: false,
mcmap.BlkSignPost: false,
mcmap.BlkWoodenDoor: false,
mcmap.BlkLadders: false,
mcmap.BlkRail: false,
mcmap.BlkCobblestoneStairs: false,
mcmap.BlkWallSign: false,
mcmap.BlkLever: false,
mcmap.BlkStonePressurePlate: false,
mcmap.BlkIronDoor: false,
mcmap.BlkWoodenPressurePlate: false,
mcmap.BlkRedstoneOre: true,
mcmap.BlkGlowingRedstoneOre: true,
mcmap.BlkRedstoneTorchInactive: false,
mcmap.BlkRedstoneTorchActive: false,
mcmap.BlkStoneButton: false,
mcmap.BlkSnow: false,
mcmap.BlkIce: false,
mcmap.BlkSnowBlock: true,
mcmap.BlkCactus: false,
mcmap.BlkClay: true,
mcmap.BlkSugarCane: false,
mcmap.BlkJukebox: true,
mcmap.BlkFence: false,
mcmap.BlkPumpkin: true,
mcmap.BlkNetherrack: true,
mcmap.BlkSoulSand: true,
mcmap.BlkGlowstone: true,
mcmap.BlkNetherPortal: false,
mcmap.BlkJackOLantern: true,
mcmap.BlkCakeBlock: false,
mcmap.BlkRedstoneRepeaterInactive: false,
mcmap.BlkRedstoneRepeaterActive: false,
mcmap.BlkLockedChest: false,
mcmap.BlkTrapdoor: false,
mcmap.BlkMonsterEgg: false,
mcmap.BlkStoneBricks: true,
mcmap.BlkHugeBrownMushroom: true,
mcmap.BlkHugeRedMushroom: true,
mcmap.BlkIronBars: false,
mcmap.BlkGlassPane: false,
mcmap.BlkMelon: true,
mcmap.BlkPumpkinStem: false,
mcmap.BlkMelonStem: false,
mcmap.BlkVines: false,
mcmap.BlkFenceGate: false,
mcmap.BlkBrickStairs: false,
mcmap.BlkStoneBrickStairs: false,
mcmap.BlkMycelium: true,
mcmap.BlkLilyPad: false,
mcmap.BlkNetherBrick: true,
mcmap.BlkNetherBrickFence: false,
mcmap.BlkNetherBrickStairs: false,
mcmap.BlkNetherWart: false,
mcmap.BlkEnchantmentTable: false,
mcmap.BlkBrewingStand: false,
mcmap.BlkCauldron: false,
mcmap.BlkEndPortal: false,
mcmap.BlkEndPortalBlock: false,
mcmap.BlkEndStone: true,
mcmap.BlkDragonEgg: false,
mcmap.BlkRedstoneLampInactive: true,
mcmap.BlkRedstoneLampActive: true,
mcmap.BlkWoodenDoubleSlab: true,
mcmap.BlkWoodenSlab: false,
mcmap.BlkCocoa: false,
mcmap.BlkSandstoneStairs: false,
mcmap.BlkEmeraldOre: true,
mcmap.BlkEnderChest: false,
mcmap.BlkTripwireHook: false,
mcmap.BlkTripwire: false,
mcmap.BlkBlockOfEmerald: true,
mcmap.BlkSpruceWoodStairs: false,
mcmap.BlkBirchWoodStairs: false,
mcmap.BlkJungleWoodStairs: false,
mcmap.BlkCommandBlock: true,
mcmap.BlkBeacon: false,
mcmap.BlkCobblestoneWall: false,
mcmap.BlkFlowerPot: false,
mcmap.BlkCarrots: false,
mcmap.BlkPotatoes: false,
mcmap.BlkWoodenButton: false,
mcmap.BlkMobHead: false,
mcmap.BlkAnvil: false,
mcmap.BlkTrappedChest: false,
mcmap.BlkWeightedPressurePlateLight: false,
mcmap.BlkWeightedPressurePlateHeavy: false,
mcmap.BlkRedstoneComparatorInactive: false,
mcmap.BlkRedstoneComparatorActive: false,
mcmap.BlkDaylightSensor: false,
mcmap.BlkBlockOfRedstone: true,
mcmap.BlkNetherQuartzOre: true,
mcmap.BlkHopper: false,
mcmap.BlkBlockOfQuartz: true,
mcmap.BlkQuartzStairs: false,
mcmap.BlkActivatorRail: false,
mcmap.BlkDropper: false,
mcmap.BlkStainedClay: true,
mcmap.BlkHayBlock: true,
mcmap.BlkCarpet: false,
mcmap.BlkHardenedClay: true,
mcmap.BlkBlockOfCoal: true,
mcmap.BlkPackedIce: false,
mcmap.BlkLargeFlower: false,
}
|