在扁平化后,方块状态与数字形式ID被拆离,也就不能像之前直接使用 Blocks和 Add数组进行直接的方块状态ID表示。因此,在扁平化后,子区块保存方块状态使用了“调色板”用于保存方块状态与数字的映射,并将数字按照YZX编码按顺序保存到 data中。 “调色板”,即 palette标签,使用元素的索引作为对应方块状态的ID。这个ID...
Block location: World: (-707,45,327), Chunk: (at 13,2,7 in -45,20; contains blocks -720,0,320 to -705,255,335), Region: (-2,0; contains chunks -64,0 to -33,31, blocks -1024,0,0 to -513,255,511)Stacktrace:at net.minecraft.world.WorldServer.func_72955_a(WorldServer.java...
传输和生成也是以chunk为单位,所以会看到服务器卡的时候是一块一块冒出来的。chunk放到HashMap里面备用。
function Level:createflatlevel(yblocks)for y=1,self.h doif(yblocks[y] ~= Tile.air.id and yblocks[y] ~= nil) thenfor x = self.x0,self.x1 dofor z = self.z0,self.z1 doself.block[x+self.l/2][y][z+self.w/2] = yblocks[y]endendendendendfunction Level:getBlockType(x,y...
Level spawn location: World: (208,63,210), Chunk: (at 0,3,2 in 13,13; contains blocks 208,0,208 to 223,255,223), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)Level time: 495 game time, 495 day timeLevel storage version: 0x00000 - Unknown?
Chunkstats:ServerChunkCache:948Drop:0 Levelseed:5576003967697295357 Levelgenerator:ID00-default,ver1.Featuresenabled:true Levelgeneratoroptions:Levelspawnlocation:World:(248,64,256),Chunk:(at8,4,0in15,16;containsblocks240,0,256to255,255,271),Region:(0,0;containschunks0,0to31,31,blocks0,0,0to...
Chunk stats: MultiplayerChunkCache: 76, 76Level seed: 0Level generator: ID 00 - default, ver 1. Features enabled: falseLevel generator options: Level spawn location: World: (-224,64,252), Chunk: (at 0,4,12 in -14,15; contains blocks -224,0,240 to -209,255,255), Region: (-1,...
# X offset for initial spawn search in blocks //在默认情况下,原版会以0 0为中心尽量选择一个温暖的生物群系为生成点,这个地方用于默认选择一个出生点时搜索的x轴长度I:xSpawnOffset=0# Z offset for initial spawn search in blocks //同上,但这里是z轴I:zSpawnOffset=0} 9楼2019-01-18 14:19 ...
Chunk stats: MultiplayerChunkCache: 9, 14Level seed: 0Level generator: ID 02 - largeBiomes, ver 0. Features enabled: falseLevel generator options: Level spawn location: World: (-88,64,-334), Chunk: (at 8,4,2 in -6,-21; contains blocks -96,0,-336 to -81,255,-321), Region: ...
Chunk stats: 961, 565Level dimension: minecraft:overworldLevel spawn location: World: (-96,68,-144), Section: (at 0,4,0 in -6,4,-9; chunk contains blocks -96,-64,-144 to -81,319,-129), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,-64,-512 to -1...