🌐 You are reading the ไทย translation of this article
Available languages for this article:

Pop Up Mod ช่วยให้คนทำ Modpack สามารถแสดงข้อความแบบกำหนดเองบนหน้าจอได้ คุณสามารถใช้คำสั่งง่ายๆ หรือสคริปต์ KubeJS เพื่อสร้างข้อความป๊อปอัพ มอดนี้ช่วยให้คุณวางข้อความในตำแหน่งต่างๆ บนหน้าจอและรองรับหลายภาษา เหมาะอย่างยิ่งสำหรับการแสดงสิ่งต่างๆ เช่น การอัปเดตเควส หรือการแจ้งเตือนพิเศษในเกมของคุณ

ฟีเจอร์เด่น:

  • แสดงข้อมูลที่กำหนดเองบนหน้าจอโดยใช้คำสั่งง่ายๆ
  • รองรับการแปลภาษา (Translations) เพื่อให้ข้อความแสดงผลได้หลายภาษา
  • เลือกตำแหน่งบนหน้าจอเพื่อวางข้อความได้หลากหลาย
  • ใช้งานร่วมกับ KubeJS สำหรับการทำป๊อปอัพขั้นสูงผ่านสคริปต์

คำสั่ง (Commands):

คุณสามารถสร้างข้อความป๊อปอัพได้ด้วยคำสั่ง /pop ตัวอย่างเช่น:

  • /pop create @s MIDDLE_LEFT "Hello World!"

สำหรับการใช้งานขั้นสูง มอดนี้สามารถควบคุมผ่าน KubeJS ได้ ด้านล่างนี้คือตัวอย่างสคริปต์:

// server.js
const PopBuilder = java.load('pro.mikey.mods.pop.PopBuilder');
const Placement = java.load('pro.mikey.mods.pop.data.Placement'); // Optional
const pop = PopBuilder.create()
    .duration(5)
    .content({ text: "Hello World!" })
    .placement("middle_left") // Or  .placement(Placement.MIDDLE_LEFT)

// You can now either build it and get a PopData object or directly send it to the player
// If you're on the server
pop.sendToPlayer(player);

// If you're on the client
pop.display()

วิธีใช้งาน:

  1. รันเกมพร้อมติดตั้งมอด
  2. ใช้คำสั่ง /pop ในเกมเพื่อสร้างข้อความป๊อปอัพใหม่
  3. หรือจะใช้ KubeJS เพื่อเข้าถึงและจัดการระบบป๊อปอัพก็ได้

ภาพตัวอย่าง:

Minecraft mod list screen showing details for the Pop mod
หน้าจอรายการมอด Minecraft แสดงรายละเอียดของ Pop mod
Player typing a command to create a custom on screen display
ผู้เล่นกำลังพิมพ์คำสั่งเพื่อสร้างการแสดงผลบนหน้าจอแบบกำหนดเอง
Large red text displayed on screen using the Pop Up Mod
ข้อความสีแดงขนาดใหญ่แสดงบนหน้าจอโดยใช้ Pop Up Mod
Formatted text and greetings displayed over a beach landscape
ข้อความที่จัดรูปแบบและคำทักทายแสดงอยู่บนพื้นหลังชายหาด
Pop Up Mod displaying a quest completion notification on the screen
Pop Up Mod แสดงการแจ้งเตือนเมื่อทำเควสสำเร็จบนหน้าจอ
A custom text message displayed over a scenic mountain landscape
ข้อความแบบกำหนดเองแสดงอยู่บนพื้นหลังทิวทัศน์ภูเขา
Pop Up Mod displaying a quest reminder on the screen
Pop Up Mod แสดงข้อความเตือนความจำเควสบนหน้าจอ
Custom text notification appearing at the top of the screen
การแจ้งเตือนข้อความแบบกำหนดเองปรากฏที่ด้านบนของหน้าจอ

Pop Up Mod Download Links

For Minecraft 1.21.1, 1.21

Forge version: Download from Server 1Download from Server 2

For Minecraft 1.20.1, 1.20

Forge version: Download from Server 1Download from Server 2

Click to rate this post!
[Total: 2 Average: 5]