Pop 图标

Pop

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 21.1.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/pops
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: utility

资源介绍

Pop

Pop is a small helper mod for modpack developers to allow for more screen locations to display information on screen in a command driven, or kubejs driven way.

BisectHosting

Features

  • Display information on screen in a command driven way (/pop create @s MIDDLE_LEFT "Hello World!")
  • Supports translations out of the box
  • [ ] (Coming soon) progress bars
  • [ ] (Coming soon) headings & subheadings
  • [ ] (Coming soon) customisation via commands as well as code
  • [ ] (Coming soon) more animations for text

How to use

  1. Install the mod in your modpack
  2. Run the game
  3. Use the /pop command to create a new pop up

Alternatively, you can use KubeJS to access the Pop Manager and the Pop Builder.

Example

// 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()

Requests

If you have any requests for features, please open an issue on the GitHub repository. I will try to get to them as soon as possible. I'm always looking for new ideas to improve the mod and make it more useful for modpack developers.

📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
KubeJS TFMG

价格:0 墨喵币
下载量:0

查看详情
Bare Bones x Armor Trim Item Fix

价格:0 墨喵币
下载量:0

查看详情
Eugene's Iron Knight Armor

价格:0 墨喵币
下载量:0

查看详情
Cosmetic Nametags

价格:0 墨喵币
下载量:0

查看详情