跳到正文

Recipe Research

作者:zendarva

A mod that allows creating tech trees to gate Vanilla style recipes.

收藏

介绍

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

This mod is an entry in Modjam 2018

Recipe Research allows you to use Json to control which recipes are available to a player.

The mod includes one block, the Scanner. To gain access to recipes, items must be scanned in the scanner, which will return research about that item. Players may use that research to unlock recipes. If you have JEI installed, recipes that are restricted will show their restriction, as well as which item to research to gain access to them.

Currently the scanner requires no energy, only time. You place the item in the scanner, and it will (may…) produce a Research item.

Example Config:

//The file should start with an array of recipes to control.
[
{
//Controlled recipes go in this array. The string should contain the name of the recipe.
"controlledRecipes": [
"minecraft:arrow",
"minecraft:bow"
],
//The name of the item that will unlock these recipes when scanned.
"itemToScan": "minecraft:string",
//Required power to complete scanning. This is just # of ticks required currently.
//If a research doesn't exist, then it will take 1000 ticks when the item is scanned.
"requiredPower": 500,
//commandToRun will be run by the reciperesearch fake player, with op permissions. %player% will be replaced with
//the name of the player to trigger the research. This is optional.
"commandToRun":"/say %player% just discovered bows!",
//Chance the research will succeed. If not included will default to 100.
"successChance":50
}
]

 

 

 

With this config in place, a player would not be able to craft Arrows, or a Bow, without first scanning some String. Scanning the string has a 50% chance to give you a Research note that will unlock the recipes. When the player uses the research note, the commandToRun will be execute, in this case it will send a message to everyone on the server that the player has completed the research. This could easily be used to grant gamestages, or do any number of other clever things.

The example config will generate the first time the mod is launched, and is very minimal, simply to provide an example of usage. Bows and arrows are locked behind string, and dispensers are locked behind Bows.

常见问题

Recipe Research 支持哪些 Minecraft 版本?

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

Recipe Research 怎么安装?

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

评论

登录后评论和评分

zendarva 的其他作品

查看全部 →