Minecraft Wiki

Minecraft Wiki ภาษาไทยกำลังจะย้ายออกจาก Fandom ตามภาษาอังกฤษในเร็ว ๆ นี้ ดูที่หน้านี้และ Discord สำหรับข้อมูลเพิ่มเติม

READ MORE

Minecraft Wiki
Advertisement
Dark Oak Sapling
บทความ นี้ยังเป็นโครง 
คุณสามารถช่วยเราได้โดยการเพิ่มข้อมูล
Chunk

ภาพแสดงพื้นที่ของ 1 ชังก์ ซึ่งทั้งชังก์นั้นจะมีความสูงถึงระดับ 256

ชังก์ (อังกฤษ: Chunk ; ก้อน, ชิ้น) เป็นส่วนที่สูง 256 บล็อกขนาด 16 × 16 ของโลก Minecraft ซึ่งชังก์นั้นเป็นวิธีการที่ใช้สร้างโลกโดยการแบ่งพื้นที่ออกเป็นส่วน ๆ ที่สามารถจัดการได้

การเกิด[]

ชังก์มีความกว้าง 16 บล็อก ยาว 16 บล็อก และสูง 256 บล็อก ซึ่งมีพื้นที่รวมเท่ากับ 65,536 บล็อก โดยชังก์จะถูกสร้างรอบ ๆ ผู้เล่นเมื่อเข้าสู่โลกเป็นครั้งแรก ในขณะที่ผู้เล่นตระเวนไปรอบ ๆ โลก ชังก์ใหม่ ๆ ก็จะถูกสร้างขึ้นตามความจำเป็น

ชังก์ถูกสร้างขึ้นจาก seed ของโลกนั้น ๆ ซึ่งหมายความว่าชังก์ ๆ นั้นจะเหมือนเดิมเสมอถ้าเราใช้ seed เดิมอีกครั้งตราบเท่าที่การสร้างโลกนั้นอยู่ในเวอร์ชันเดียวกัน

ชังก์ที่ถูกโหลดและไม่ถูกโหลด[]

ชังก์ที่อยู่ใกล้ ๆ ผู้เล่นจะถูกโหลดในหน่วยความจำ (memory) ซึ่งระยะการโหลดนั้นขึ้นอยู่กับตั้งค่าระยะการมองเห็น (Render Distance) โดยที่ชังก์เหล่านี้อาจมีกิจกรรมต่าง ๆ เกิดขึ้น (เช่น ม็อบเกิด, ต้นไม้โต, น้ำไหล, ไอเทมที่ตกอยู่หายไป ฯลฯ) ในขณะนั้นชังก์ที่อยู่นอกขอบเขตจะไม่ได้ถูกใช้งานและถูกเก็บข้อมูลลงในดิสก์ (disk) และชังก์จะไม่ถูกบันทึกอีกครั้งถ้าหากมันถูกบันทึกไปแล้วใน 30 วินาทีที่ผ่านมา

ในโหมดผู้เล่นหลายคน (multiplayer), a grid with a default inradius of 10 (for a total of 21x21 or 441) chunks is loaded around each player and sent to the player by default, although this can be configured to be between 3 and 15, usually only lowered with a poor connection home server.

ชังก์จุดเกิด[]

บทความหลัก: Spawn chunk

ชังก์ในพื้นที่รอบ ๆ จุดเกิดของโลกจะเป็นชังก์พิเศษที่จะถูกโหลดตลอดเวลาจากหน่วยความจำตราบเท่าที่ยังมีผู้เล่นอย่างน้อย 1 คนในโลกปกติ ซึ่งหมายความว่าสิ่งของอย่าง (เช่น กลไกเรดสโตน และฟาร์มม็อบ) ที่อยู่ในจุดนั้นจะยังคงทำงานต่อไปถึงแม้ว่าผู้เล่นจะอยู่ไกลจากมันมาก ๆ

ผลต่อประสิทธิภาพ[]

Chunks are normally loaded into volatile memory only when they are needed for displaying. This 'store until needed' memory management is commonly used in games with procedurally-generated terrain so that the players' computers don't have to track and update hundreds of plants and mobs simultaneously.

Minecraft's render engine uses OpenGL's display list feature to divide a world chunk into sixteen 16x16x16 blocks large display lists to speed up rendering significantly. They need to be rebuilt each time when a block within them is changed and can be rendered multiple times to achieve e. g. transparency.[1]

การเกิดสไลม์[]

บทความหลัก: Slime § การเกิด

สไลม์สามารถเกิดได้ในชังก์ที่เฉพาะของมันเท่านั้น ซึ่งมันจะถูกกำหนดโดยการคำนวณพิกัดของชังก์ ในการหาชังก์สไลม์นั้นมีโปรแกรมและม็อดมากมายให้ผู้เล่นได้เลือกใช้

การหาขอบชังก์[]

Chunkf32

The key F3 + G can be used to display chunk boundaries.

Alternately, pressing the "F3" button opens the Debug screen which shows the player's X, Y, and Z coordinates, in addition to the "c" variable. These coordinates will change as the player moves around. The player can know which chunk they are in by the variable "c" that is next to both "x" and "z" variables. The number in the brackets specifies how far the player is from the north-western corner of the chunk, so if the "c" beside X was 3(5), and the "c" beside Z was 2(4), then the player is on chunk (3, 2), and is on block (5, 4) from the north-western corner.

X and Z coordinates that are divisible by 16 represent the boundaries between chunks. EG: (96, -32) is a corner where four chunks meet. One of those chunks is between X coordinates 80 to 96 and Z coordinates -48 to -32. Another one is between X coordinates 96 to 112 and Z coordinates -32 to -16, and so on. When either X or Z crosses a multiple of 16, the player is moving across chunks.

Essentially, the player is in the top-left corner (north-western) of a chunk when both x and z coordinates are divisible by 16.

Additionally, the player can know which chunk they are on by this formula:
The X of chunk will be Floor( X coordinate / 16 )
The Z of chunk will be Floor( Z coordinate / 16 )
Where Floor is the largest previous integer. E.g. Floor( 27.9561 ) is 27
In other words if X was 27, Z was -15 the chunk will be chunk ( Floor( 27 / 16 ), Floor( -15 / 16 ) ) which means the player is on chunk (1, -1)
Also, The player can know how far he is from the north-western corner by this formula:
(X or Z coordinate) AND 15

In Bedrock Edition, when toggling fancy graphics, the world will render again, loading only the chunk the player is in for a split second. This method is useful for finding chunk boundaries as there will be a clear line visible in that split second.

วิดีโอ[]

Chunk/video

เกร็ดความรู้[]

  • มีชังก์จริง ๆ ที่เป็นไปได้ว่าจะสามารถสร้างขึ้นได้ 14 ล้านล้านชังก์ (14,062,500,000,000) และมีชังก์ที่เป็นไปได้ 7.46*10244,700 ชังก์ ซึ่งไม่รวมเอนทิตี้
  • ถ้าหากผู้เล่นไปยืนอยู่ในชังก์ที่ยังไม่ถูกสร้าง โลกจะล่องหนโดยทันทีจนกว่าคุณอยู่ในชังก์ที่สมบูรณ์ และนี่จะไม่เกิดขึ้นถ้าหากคุณอยู่ในพิกัด Y ที่เกิดขอบเขตของชังก์

ดูเพิ่ม[]

  • Chunk Format
  • Frame rate

อ้างอิง[]

Advertisement