跳到正文

Loadout

作者:mallrat208

GrimCo's Loadout, the starting equipment mod

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Loadout is a mod made for Mod Pack Makers. It allows you to specify a set or sets of items to give to Players the first time they log into the game. You are able to specify multiple loadouts in case you need to add additional items at a later point. Item Loadouts are stored in

.minecraft\config\grimco\loadouts.json

 The expected syntax for the loadouts.json is similar to what vanilla uses for recipes. The follow bit of code creates a Loadout called ‘basic’ that gives players 32 Torches, 8 Apples, 1 Stone Pickaxe, 4 Birch Saplings, and 1 Potion of Healing

{
  "basic": [
    {
      "item": "minecraft:torch",
      "count": 32
    },
    {
      "item": "minecraft:apple",
      "count": 8
    },
    {
      "item": "minecraft:stone_pickaxe"
    },
    {
      "item": "minecraft:sapling",
      "data": 2,
      "count": 4
    },
    {
      "nbt": "{Potion:\"minecraft:healing\"}",
      "item": "minecraft:potion",
      "type": "minecraft:item_nbt"
    }
  ]
}

 

 

It’s pretty straight forward, and easy to tweak by hand if needed. There is an easier way however.

Loadout also offers some commands that Creative Players or those who are OP on server can access

 

The primary command, /LO, has 6 default arguments. Create, Delete, List, View, Reload, and Help. 

  • /LO CREATE <NAME>
    • When used, the command creates a Loadout with the given name based on the contents of your inventory. It will automatically be added to the loadout.json in the config directory. Loadout names must be unique. If you reuse a Loadout name, it will overwrite the previous Loadout. To activate the Loadout you will need to restart the server/your client in a single player setting OR use /LO RELOAD
  • /LO DELETE <NAME>
    • Deletes the current active Loadout with the given name. This will remove it from the Loadout json file as well. There is no undo for this, so use it with care.
  • /LO LIST
    • Lists all current active loadouts
  • /LO VIEW <NAME>
    • Displays the items that will be given by the given loadout, including Item Name, Data (meta), Count, and NBT
  • /LO RELOAD
    • Reloads all Loadouts from the Loadout json, useful if you’re manually tweaking stuff.
  • /LO HELP <CREATE|DELETE|LIST|VIEW|RELOAD|HELP>
    • Displays the proper syntax for the passed argument and gives a short description as to it’s function.
      • Who Helps the Help?

When a player log’s in for the first time, the Mod checks to see if a player has previously received the current active Loadouts, if they haven’t the player is granted the items specified and then tagged as having received the items preventing any further items from being given. 

Loadout is a new mod, as such if you find any bugs or have any suggestions, please submit a GitHub issue. 

Loadout is available for all pack makers to use, if you have any questions, please submit a GitHub issue. 

Basically, if you need any sort of help, make a GitHub issue.

 

常见问题

Loadout 支持哪些 Minecraft 版本?

Loadout 支持 Minecraft Java 版 1.12.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Loadout 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

mallrat208 的其他作品

查看全部 →