Git Product home page Git Product logo

treasurechest's Introduction

TreasureChest

指令

/treasure lang [zh_cn,en_us,...]   查看/设置语言
/treasure save                     保存配置到文件
/treasure reload                   从文件重新载入配置
/treasure create                   在左键选择的位置创建宝箱(配置是默认的,需要手动修改配置文件后重载)
/treasure open                     打开最近左键选择的位置处的宝箱仓库
/treasure open x,y,z               打开玩家所在世界的<x,y,z>坐标处的宝箱仓库
/treasure open world,x,y,z         打开给定坐标处的宝箱仓库
/treasure copy                     复制最近选择位置处得宝箱仓库
/treasure paste                    粘贴最近复制得宝箱仓库到最近选择位置的宝箱
/treasure delete                   删除最近选择的宝箱
/treasure run                      启动所有宝箱生成,如果宝箱不是覆盖模式则不会生成
/treasure run force                强制启动所有宝箱生成,原来的非空气方块会被覆盖
/treasure stop                     停止所有宝箱刷新

工具使用说明

1. 金锹 左键创建宝箱,右键删除宝箱
2. 金斧 左键选择位置,右键打开仓库
3. 金镐 左键复制仓库,右键粘贴仓库

配置

# 语言
lang: zh_cn
# 宝箱
boxes:
  # 宝箱唯一id,也是坐标,世界名尽量短且不要带"."
  world,0,100,0:
    # 打开宝箱后再次刷新的时间(x20tick,标准速度为 x1秒)
    refresh: 10
    # 从仓库随机生成到宝箱的物品数量
    rand_amount: 5
    # 仓库的大小,行数,每行9个格子
    line_amount: 6
    # 是否覆盖,如果目标位置已经存在其他方块,是否用宝箱覆盖
    override: true
    # 是否消失,关闭宝箱后,宝箱是否消失
    disappear: true
    # 是否广播,玩家打开宝箱时是否广播(未实现)
    broadcast: false

权限

permissions:
  # 管理权限,执行/treasure 命令需要
  treasure.admin:
    default: op
  # 使用权限,拥有此权限才可以打开宝箱(默认:false)
  treasure.use:
    default: op

treasurechest's People

Contributors

himmelt avatar

Watchers

 avatar  avatar

treasurechest's Issues

TODO

  1. 传送到宝箱位置
  2. list查看
  3. fake block 标示宝箱位置

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.