Containers

Mar 31, 2019
Containers
  • - Containers -

    Main Page
    Introduction

    This page will explain you how to create an RPG container

    Creating a container

    First of all, you obviously need a container. Now, only one type of container exists, which is the chest. (I will add more types in the future)
    Once you've placed a chest on the desired location, target it and use the following command:
    • /rpgchest container create <container name> <item table name>
    You should see a message telling you that you successfully set the chest as an RPG Chest

    Deleting a container

    You might want to delete an existing RPG Chest from the server and turn the container as a normal block
    To remove the container, simply execute this command:
    • /rpgchest container remove <container name>
    That's it! The container will no longer act as an RPG Chest

    Editing a container

    Right now, the only way to edit a container without removing it is through the container.yml file. Don't worry if you are a file hater, I will add commands to edit them without touching any file in future updates

    Here is an example of the configuration of a container:
    Code (YAML):
    test:
      world
    : world
      x
    : -550.0
      y
    : 75.0
      z
    : 66.0
      type
    : chest
      table
    : Example_table

    Be sure to use the reload command after any change you make in the file!

    • The first line is the container name. You can modify it safely if you ever wish to change your container name (for format purpose for example)
    • The second to the fifth line are about the container location. If you modify it, you MUST put a container at the location you have manually set. Otherwise you will experience strange behaviors.
    • The sixth line is the container type. As said above, for now there's only 'chest' type but I will add more in the future
    • The last line is the attached item table, which will decide on what items will be found in the container

    Adding conditions

    You can configure your containers even more by adding conditions to it by using this command:
    • /rpgchest container condition <container name> add <condition name> <value>
    For exemple:
    • /rpgchest container condition test add level 5
    Players must be at least level 5 to open the container

    Condition list:
    • level <value>
    Set the minimum Minecraft vanilla level a player must have to <value> in order to open the container

    Removing conditions

    You can remove a condition attached to a container by using this command:
    • /rpgchest container condition <container name> remove <condition name>
    For exemple:
    • /rpgchest container condition test remove level


    —————————————————————Chinese———————————————————————

    - 容器 -

    主页
    介绍

    这一页面将解释如何创建RPG 容器

    创建一个容器

    首先你需要一个容器. 目前只有一种可使用的容器:箱子. (更多类型将在未来版本更新)
    当你在指定地点放置容器后, 指着这个容器并输入以下指令:

    • /rpgchest container create <容器名> <物品表名>
    之后你将看到成功创建容器的消息

    删除容器

    你可以删除 RPG 容器并使其变为普通的容器, 只需输入指令:
    • /rpgchest container remove <容器名>
    完成! 这一容器不再是 RPG 容器了

    编辑容器

    目前只能通过 container.yml 文件编辑容器. 如果你讨厌文件编辑也不要担心, 在未来版本我将更新指令编辑I will add commands to edit them without touching any file in future updates

    以下为容器配置示例:
    Code (YAML):
    test:
      world
    : world
      x
    : -550.0
      y
    : 75.0
      z
    : 66.0
      type
    : chest
      table
    : Example_table

    在更改后请使用重载指令以生效!

    • 第一行为容器名. 你可以随意更改 (比如以特定格式命名)
    • 第二行为容器地点. 如果你修改了地点, 你必须在对应的坐标放置容器. 否则可能会发生灵异事件.
    • 第六行为容器类型. 如上所述, 目前只有 'chest' 可以使用,未来版本将更新更多内容
    • 最后一行为决定了容器内可找到的物品的相关物品表
  • Loading...
  • Loading...