Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.49 KB | None | 0 0
  1.  
  2.         static byte[] mapping = new byte[256];
  3.  
  4.         static MapMCSharp() {
  5.             mapping[100] = (byte)Block.Glass;       // op_glass
  6.             mapping[101] = (byte)Block.Obsidian;    // opsidian
  7.             mapping[102] = (byte)Block.Brick;       // op_brick
  8.             mapping[103] = (byte)Block.Stone;       // op_stone
  9.             mapping[104] = (byte)Block.Rocks;       // op_cobblestone
  10.             mapping[105] = (byte)Block.Air;         // op_air
  11.             mapping[106] = (byte)Block.Water;       // op_water
  12.  
  13.             mapping[110] = (byte)Block.Wood;        // wood_float
  14.             mapping[111] = (byte)Block.Log;         // door
  15.             mapping[112] = (byte)Block.Lava;        // lava_fast
  16.             mapping[113] = (byte)Block.Obsidian;    // door2
  17.             mapping[114] = (byte)Block.Glass;       // door3
  18.             mapping[115] = (byte)Block.Stone;       // door4
  19.             mapping[116] = (byte)Block.Leaves;      // door5
  20.             mapping[117] = (byte)Block.Sand;        // door6
  21.             mapping[118] = (byte)Block.Wood;        // door7
  22.             mapping[119] = (byte)Block.Green;       // door8
  23.             mapping[120] = (byte)Block.TNT;         // door9
  24.             mapping[121] = (byte)Block.Stair;       // door10
  25.  
  26.             mapping[122] = (byte)Block.Log;         // tdoor
  27.             mapping[123] = (byte)Block.Obsidian;    // tdoor2
  28.             mapping[124] = (byte)Block.Glass;       // tdoor3
  29.             mapping[125] = (byte)Block.Stone;       // tdoor4
  30.             mapping[126] = (byte)Block.Leaves;      // tdoor5
  31.             mapping[127] = (byte)Block.Sand;        // tdoor6
  32.             mapping[128] = (byte)Block.Wood;        // tdoor7
  33.             mapping[129] = (byte)Block.Green;       // tdoor8
  34.  
  35.             mapping[130] = (byte)Block.White;       // MsgWhite
  36.             mapping[131] = (byte)Block.Black;       // MsgBlack
  37.             mapping[132] = (byte)Block.Air;         // MsgAir
  38.             mapping[133] = (byte)Block.Water;       // MsgWater
  39.             mapping[134] = (byte)Block.Lava;        // MsgLava
  40.  
  41.             mapping[135] = (byte)Block.TNT;         // tdoor9
  42.             mapping[136] = (byte)Block.Stair;       // tdoor10
  43.             mapping[137] = (byte)Block.Air;         // tdoor11
  44.             mapping[138] = (byte)Block.Water;       // tdoor12
  45.             mapping[139] = (byte)Block.Lava;        // tdoor13
  46.  
  47.             mapping[140] = (byte)Block.Water;       // WaterDown
  48.             mapping[141] = (byte)Block.Lava;        // LavaDown
  49.             mapping[143] = (byte)Block.Aqua;        // WaterFaucet
  50.             mapping[144] = (byte)Block.Orange;      // LavaFaucet
  51.  
  52.             mapping[145] = (byte)Block.Water;       // finiteWater
  53.             mapping[146] = (byte)Block.Lava;        // finiteLava
  54.             mapping[147] = (byte)Block.Cyan;        // finiteFaucet
  55.  
  56.             mapping[148] = (byte)Block.Log;         // odoor1
  57.             mapping[149] = (byte)Block.Obsidian;    // odoor2
  58.             mapping[150] = (byte)Block.Glass;       // odoor3
  59.             mapping[151] = (byte)Block.Stone;       // odoor4
  60.             mapping[152] = (byte)Block.Leaves;      // odoor5
  61.             mapping[153] = (byte)Block.Sand;        // odoor6
  62.             mapping[154] = (byte)Block.Wood;        // odoor7
  63.             mapping[155] = (byte)Block.Green;       // odoor8
  64.             mapping[156] = (byte)Block.TNT;         // odoor9
  65.             mapping[157] = (byte)Block.Stair;       // odoor10
  66.             mapping[158] = (byte)Block.Lava;        // odoor11
  67.             mapping[159] = (byte)Block.Water;       // odoor12
  68.  
  69.             mapping[160] = (byte)Block.Air;         // air_portal
  70.             mapping[161] = (byte)Block.Water;       // water_portal
  71.             mapping[162] = (byte)Block.Lava;        // lava_portal
  72.  
  73.             mapping[164] = (byte)Block.Air;         // air_door
  74.             mapping[165] = (byte)Block.Air;         // air_switch
  75.             mapping[166] = (byte)Block.Water;       // water_door
  76.             mapping[167] = (byte)Block.Lava;        // lava_door
  77.  
  78.             mapping[168] = (byte)Block.Air;         // odoor1_air
  79.             mapping[169] = (byte)Block.Air;         // odoor2_air
  80.             mapping[170] = (byte)Block.Air;         // odoor3_air
  81.             mapping[171] = (byte)Block.Air;         // odoor4_air
  82.             mapping[172] = (byte)Block.Air;         // odoor5_air
  83.             mapping[173] = (byte)Block.Air;         // odoor6_air
  84.             mapping[174] = (byte)Block.Air;         // odoor7_air
  85.  
  86.             mapping[175] = (byte)Block.Cyan;        // blue_portal
  87.             mapping[176] = (byte)Block.Orange;      // orange_portal
  88.  
  89.             mapping[177] = (byte)Block.Air;         // odoor8_air
  90.             mapping[178] = (byte)Block.Air;         // odoor9_air
  91.             mapping[179] = (byte)Block.Air;         // odoor10_air
  92.             mapping[180] = (byte)Block.Air;         // odoor11_air
  93.             mapping[181] = (byte)Block.Air;         // odoor12_air
  94.  
  95.             mapping[182] = (byte)Block.TNT;         // smalltnt
  96.             mapping[183] = (byte)Block.TNT;         // bigtnt
  97.             mapping[184] = (byte)Block.Lava;        // tntexplosion
  98.             mapping[185] = (byte)Block.Lava;        // fire
  99.  
  100.             mapping[187] = (byte)Block.Glass;       // rocketstart
  101.             mapping[188] = (byte)Block.Gold;        // rockethead
  102.             mapping[189] = (byte)Block.Steel;       // firework
  103.             // all others default to 0/air
  104.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement