Minecraft Wiki

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

READ MORE

Minecraft Wiki
Register
Advertisement
Translation Thai Alphabet
บทความนี้มีเนื้อหาบางส่วนเป็นภาษาต่างประเทศ 
คุณสามารถช่วยพัฒนาบทความนี้ได้ด้วยการแปลเนื้อหา
Information icon
ฟีเจอร์นี้พิเศษเฉพาะใน รุ่น Java 
Disambig color บทความนี้เกี่ยวกับระบบดาต้าแพ็ก สำหรับคำสั่ง ดูที่ Commands/datapack สำหรับระบบรีซอร์ซแพ็ก ดูที่ รีซอร์ซแพ็ก

ระบบ ดาต้าแพ็ก หรือ เดต้าแพ็ก (อังกฤษ: Data pack) เป็นระบบที่ช่วยให้ผู้เล่นสามารถปรับแต่งเกม Minecraft ของตนได้มากขึ้น ซึ่งระบบนี้จะเป็นการเขียนทับหรือเพิ่มความก้าวหน้า (advancement), ฟังก์ชัน (function), ลูตเทเบิล (loot table), โครงสร้างที่เกิดตามธรรมชาติ (structure), สูตรคราฟต์ (recipe) และแท็ก (tag) ใหม่ ๆ ได้โดยที่ไม่ต้องใช้โค้ดม็อดใด ๆ

การใช้งาน[]

ดาต้าแพ็กจะอยู่ในโฟลเดอร์ .minecraft/saves/(world)/datapacks ของแต่ละโลก ซึ่งแต่ละดาต้าแพ็กจะเป็นได้ทั้งโฟลเดอร์ย่อยหรือไฟล์ .zip ในโฟลเดอร์ datapacks โดยหลังจากที่มันอยู่ในโฟลเดอร์แล้ว ดาต้าแพ็กจะสามารถเปิดใช้งานสำหรับโลกนั้น ๆ ได้เมื่อโลกถูกรีโหลดหรือโหลด

ดาต้าแพ็กจะโหลดข้อมูลตามลำดับการโหลด ซึ่งลำดับนี้สามารถดูและเปลี่ยนแปลงได้โดยใช้คำสั่ง /datapack ซึ่งลำดับนี้ถูกเก็บบันทึกไว้ในไฟล์ level.dat

เนื้อหาภายใน[]

โครงสร้างโฟลเดอร์[]

  • (data pack name)
    • pack.mcmeta
    • data
      • (namespace)
        • advancements
          • (advancement).json
        • functions
          • (function).mcfunction
        • loot_tables
          • (loot_table).json
        • recipes
          • (recipe).json
        • structures
          • (structure).nbt
        • tags
          • blocks
            • (tag).json
          • items
            • (tag).json
          • fluids
            • (tag).json
          • functions
            • (tag).json

pack.mcmeta[]

A data pack is identified by Minecraft based on the presence of the pack.mcmeta file in the root directory of the data pack, which contains data in JSON format.

    •  pack: Holds the data pack information.
      •  pack_format: Pack version. Can be any number.
      •  description: A description. This string must exist but can be empty. This description will show when hovering over the data pack in the data pack list.

data[]

This folder contains all the data under one or multiple "namespaces". It can contain advancements, functions, loot_tables, structures, recipes and/or tags folders. A namespace is used to identify the data and like all file and folder names inside the data folder it should only contain lowercase alphanumerical characters, -, _, and .. It is advised to use a unique namespace to prevent clashes between multiple datapacks. The minecraft namespace should only be used when overwriting default data.

Each advancement, function, loot table, structure, recipe and tag file can be placed directly in their respective folder but sub-folders are also allowed.

ประวัติ[]

รุ่น Java
1.1317w43aAdded data packs.
17w46aAdded /datapack, a command to control loaded data packs.
17w48aData packs can now load custom recipes.
17w49aTags can now be created with data packs.
17w49bTags can now be created for functions.
Functions tagged in minecraft:tick now run every tick at the beginning of the tick.
18w01aAdded set_name function to loot tables.
Functions tagged in minecraft:load will now run once after a (re)load.
Crash reports now list what data packs are enabled.
1.1418w43aTags can now be created for entity types.

ดูเพิ่ม[]

  • Advancements
  • Function
  • Loot table
  • Recipe
  • Structure
  • Tag
  • Tutorials/Installing a data pack
  • Tutorials/Creating a data pack

Hju

Advertisement