跳到正文

ItemGator

作者:oitsjustjose

Prevent players from having/using specific items until they have a certain tag!

收藏

截图

介绍

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

Looking for an easy way to prevent players from having anything to do with an item until they’ve made it further through progression? Then look no further! ItemGator allows you to use datapack-style recipes in order to prevent players from being able to have an item until some other process – be it an FTB Quest Reward, a Per-Tick mcfunction or some other means – adds a tag to the player.

When the tag isn’t present on the player, the item will turn into whatever item is defined as a substitute and all of the data for the original item will be stored on the substitute as NBT.

When the tag is present, the mod will use that NBT data on the item to revert it back to its original form, allowing you to push the use of an item to a later time.

Datapack examples:

Disallow access to an entire mod until the tag test123 is given to the player

In this example, the mod Immersive Engineering is being gated from any player that doesn’t have the tag test123. When a player without that tag obtains any Immersive Engineering item, it’ll turn into a stick until they are granted that tag.

{
  "type": "itemgator:mod",
  "mod": "immersiveengineering",
  "substitute": { "item": "minecraft:stick" },
  "tag": "test123"
}

Disallow an item or item tag until the tag test123is given to the player

In this example, any minecraft:planks will be turned into a stick until the player is granted the tag test123:

{
  "type": "itemgator:ingredient",
  "input": { "tag": "minecraft:planks" },
  "substitute": { "item": "minecraft:stick" },
  "tag": "test123"
}

常见问题

ItemGator 支持哪些 Minecraft 版本?

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

ItemGator 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

oitsjustjose 的其他作品

查看全部 →