Coder Social home page Coder Social logo

entrusts's Introduction

Entrusts

玩家可发布的委托系统

介绍 & 截图

右键(移动端长按)配置文件中配置的物品打开委托菜单
Alt text

委托列表,这里可以查看所有用该物品作奖励的委托
(如果配置文件 allInOnetrue,这里则会显示所有委托)
Alt text

他人发布的委托详情,可以进行接取(背包内对应物品要够)
Alt text

发布委托界面,对应物品需要在配置项内自行配置
Alt text
Alt text

可以查看自己发布的委托以及完成情况(已完成的委托不会显示在委托列表)
Alt text

已完成的委托详情
Alt text

缺陷

  • 目前不支持带 特殊值 / NBT 物品的委托
  • 目前不支持设置多个委托物品与奖励

安装

使用 Lip

lip i entrusts

手动打包

dist 文件夹中所有内容打包成 zip,之后改后缀为 llplugin 安装即可

指令

entrusts reload

  • 权限:OP / 控制台
  • 介绍:重载配置文件

entrusts

  • 权限:所有人
  • 介绍:打开委托界面

配置文件

配置文件路径:plugins/Entrusts/config.json
请按照下面的注释修改配置文件
注意:实际配置文件里不能有注释

{
  // 委托可以提交的奖励物品标列表
  "entrustItems": [
    {
      // 物品标准类型名
      "type": "minecraft:emerald",

      // 物品显示名
      "name": "绿宝石",

      // 物品显示的图标,可以不填
      "icon": "textures/items/emerald",
    },
    // ...
  ],

  // 委托可以提交的需求物品列表
  "rewardItems": [
    // 格式同上,不过没有 openItem
    {
      "type": "minecraft:diamond",
      "icon": "textures/items/diamond",
      "name": "钻石",
    },
    // ...
  ],

  // 可用于打开委托列表的物品
  // 键为打开界面所用的物品,值为对应的 entrustItem 列表
  "openItems": {
    // 使用木棍打开奖励绿宝石的委托列表
    "minecraft:stick": ["minecraft:emerald"],
    // 同上,使用羽毛打开奖励绿宝石的委托列表
    "minecraft:feather": ["minecraft:emerald"],
    // ...
  },

  // 委托界面中,是否将所有奖励物品的委托放在一起
  // 当为 false 时,列表中将只显示对应奖励物品的委托
  "allInOne": false,

  // 是否只能使用上面配置的 openItems 来打开委托菜单
  "onlyUseOpenItem": false,

  // 是否只有 OP 能执行插件指令
  "cmdOnlyOp": false,
}

鸣谢

以促进玩家和平生存交易为主,用强职业的方式促进玩家之间的合作(农夫,建筑师,酿造师等~)。
借助玩家发放自己的货币和交易生态圈为基础促进玩家的国家之间的交易与发展。
有兴趣的话欢迎大家进来哇 QwQ

联系我

QQ:3076823485
吹水群:1105946125
邮箱:[email protected]

赞助

感谢大家的赞助!你们的赞助将是我继续创作的动力!

  • 爱发电

  • 赞助二维码(点击展开)

    讨饭

更新日志

0.2.1

  • 修复发布委托时没检查物品数量的 Bug
  • 将原来 entrustItems 内的 openItem 配置单独迁移出来到 openItems
  • 新增 cmdOnlyOp 配置

0.2.0

  • 优化发布委托的表单
  • 委托发布者 / OP 可以撤销已发布的未完成的委托
  • 加入一些配置项
  • 加入一些指令
  • 其他小修改

entrusts's People

Contributors

lgc2333 avatar

Stargazers

Zunsat Janvy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.