Chanapol (Blue)

ต้องการสร้าง model ดาบอย่างละเอียดตามรูปครับ พร้อมให้คนถือมือซ้ายและมือขวาเอาไว้ด้านหลัง

1 image attached
Kodari AI
KodariOct 3 at 5:14 pm 1
DualBladeSheath
Creates a Minecraft plugin that adds a detailed dual-sword model with a back-mounted sheath. Players can equip two swords, one in each hand, which are visually displayed on the player's back when holstered. The plugin renders a custom 3D sword model with intricate blade details, handles, and a leather sheath that sits diagonally across the back. When a sword is drawn, the sheath animation plays and the blade appears in the corresponding hand. Supports both left and right hand holstering, with configurable sheath position, rotation, and sword model customization through a simple config file. Includes particle effects when drawing or sheathing swords.
  1. สร้าง Paper plugin สำหรับแสดงดาบไว้ด้านหลังผู้เล่น พร้อมคำสั่งเปิด/ปิดและรับไอเทม

  2. สร้างโมเดลดาบพิกเซลสีน้ำเงิน-เงินจากรูป และฝังไฟล์ Resource Pack ให้ปลั๊กอินสร้างเป็น ZIP อัตโนมัติ

  3. ตั้งค่าโปรเจกต์ให้คอมไพล์บน Paper 1.21.4 / Java 21 เครดิตฟรี

สร้างปลั๊กอิน BackSword สำหรับ Paper 1.21.4: มีดาบทรงพิกเซลสีน้ำเงิน-เงินตามภาพ และแสดงดาบพาดไว้ด้านหลังผู้เล่น

  • /backsword toggle เปิดหรือปิดดาบด้านหลัง

  • /backsword give รับไอเทมดาบ โดยต้องมีสิทธิ์ backsword.give

  • หลังเปิดปลั๊กอินครั้งแรก จะสร้าง Resource Pack ที่ plugins/BackSword/BackSword-ResourcePack.zip ผู้เล่นต้องติดตั้งแพ็กนี้จึงจะเห็นโมเดลและถือดาบในมือซ้ายหรือขวาได้

ดาบด้านหลังเป็นภาพตกแต่ง ไม่ได้เปลี่ยนท่าทางแขนของตัวละครให้ถือดาบไว้ด้านหลังจริง ๆ

Chanapol (Blue)

ให้สรา้งเป็น blockbench modelครับ

Kodari AI
KodariOct 3 at 5:21 pm 1
  1. สร้างไฟล์ .bbmodel ที่แก้ไขต่อใน Blockbench ได้ โดยจัดองค์ประกอบดาบเป็นด้าม โกร่ง และใบดาบ

  2. ใช้ texture palette สีน้ำเงิน-เงินร่วมกันทั้งโมเดล Blockbench และ Resource Pack

  3. ปรับตัวสร้าง ZIP ให้บรรจุ texture PNG และไฟล์โมเดลต้นฉบับไปด้วยครับ

เพิ่มไฟล์โมเดล Blockbench ที่ src/main/resources/resourcepack/Blockbench/IceCrystalSword.bbmodel แล้ว แบ่งส่วนด้าม โกร่ง ใบดาบ และรายละเอียดใบดาบเป็นชิ้นที่แก้ไขแยกกันได้ พร้อมแนบไฟล์นี้ใน ZIP Resource Pack

หมายเหตุ: ไฟล์ .bbmodel มีรูปทรงโมเดล แต่ยังไม่ได้ฝัง texture สีน้ำเงิน-เงินไว้ในตัวไฟล์ สีที่ใช้ในเกมยังอิง texture ของโมเดล Resource Pack เดิมครับ

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
12 539
src/main/java/com/kodari/backsword/BackSwordPlugin.java
package com.kodari.backsword;

import java.io.IOException;
import java.util.Objects;
import org.bukkit.plugin.java.JavaPlugin;

public final class BackSwordPlugin extends JavaPlugin {
    private BackSwordManager backSwordManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        try {
            ResourcePackInstaller.create(this);
        } catch (IOException exception) {
            getLogger().severe("Could not create the BackSword resource pack: " + exception.getMessage());
        }

        backSwordManager = new BackSwordManager(this);
        getServer().getPluginManager().registerEvents(backSwordManager, this);
        Objects.requireNonNull(getCommand("backsword")).setExecutor(new BackSwordCommand(backSwordManager));
        backSwordManager.start();
    }

    @Override
    public void onDisable() {
        if (backSwordManager != null) {
            backSwordManager.removeAllDisplays();
        }
    }
}