XP Tome

XP Tome

67454963 次下载
最近更新8 个月前
添加了一本可以存储可配置数量经验值的书。 Adds a book that can store a config...

此处为织物(Fabric)版本

功能

此模组添加了一个物品——经验之书。使用经验之书,你可以储存和获取经验值。默认情况下它最多可储存1395点经验值(可配置),这相当于经验条上的30级。

用法

- 潜行 + 右键点击储存经验值
- 右键点击获取经验值

合成配方

配置(v2.0+)/物品组件

注意:对于物品组件,“true”表示该组件在物品上,“false”表示不在。
注意:如果你想更改经验之书的默认物品组件,你仍然可以使用配置文件,但其中存在一些需要注意的地方,文件中有相关说明。可以考虑创建一个数据包,并按照你的意愿设置组件来覆盖经验之书的合成配方。这里有一个示例配方。有关数据包和配方的更多信息,请查看维基百科!

max_xp - 经验之书可容纳的最大经验值点数。默认值(1395)代表经验条上的30级。
retrieval_percentage - 作为使用经验之书的一种成本,书将返还的经验值百分比。例如:如果此配置值设置为0.75,并且一本经验之书储存了100点经验值,尝试获取这100点经验值将返还75点经验值。注意:由于《我的世界》的经验值不使用小数,所以这不会是100%准确的。
retrieve_until_next_level - 将此设置为true,每次只会从书中移除玩家达到下一级所需的经验值。
retrieve_xp_orbs - 将此设置为true,将以经验球的形式从书中移除经验值。如果你想将书中的经验值用于带有“经验修补”魔咒的工具,这会很有用。
store_until_previous_level - 将此设置为true,只会从玩家的经验条中储存达到上一级所需的经验值,这意味着每次最多只会将一级的经验值添加到书的储存中。

1.14.4 - 1.20.1版本《我的世界》的配置文件可以在你的世界的serverconfig文件夹中找到。

更多信息

这个模组是我应Shivaxi的请求创建的。它基于“经验之书(XP Book)”模组,由于原模组存在复制漏洞,以及每次使用该书时附魔台会重置的漏洞,所以重新制作了这个模组。由于此模组与原模组使用相同的模组ID和物品ID,这两个模组不能同时安装,并且在它们之间切换不会导致你丢失任何物品。我没有从原模组中获取任何代码或资源。是的,v2.0仍然与“经验之书(XP Book)”模组兼容。

你可以在任何模组包中使用此模组。



快来加入我的Discord!https://discord.gg/kgZUAxK


在Twitter上关注我,获取模组更新和其他趣事!https://twitter.com/bl4ckscor3


Fabric version here

Functionality

This mod adds a single item - the XP Tome. With the XP Tome you can store and retrieve XP. It can store up to 1395 XP by default (can be configured), which equals to having 30 levels on the XP bar.

Usage

- Sneak + right-click to store XP
- Right-click to retrieve XP

Recipe

Config (v2.0+)/Item Components

Note: For item components, "true" means the component is on the item, and "false" means it isn't.
Note: If you want to change the default item components of the XP Tome you can still use the config file, however that comes with caveats explained therein. Consider creating a Data Pack and override the XP Tome's recipe with the components set as you wish. Here's an example recipe. More info about data packs and recipes on the wiki!

max_xp - The maximum amount of XP points that the XP Tome can hold. The default value (1395) represents having 30 levels on the XP bar.
retrieval_percentage - The percentage of XP that the book will give back, as a sort of cost of using it. Example: If this config value is set to 0.75, and an XP Tome has 100 XP stored, attempting to retrieve these 100 XP will give back 75 XP. Note: This will not be 100% accurate, as Minecraft's XP does not use decimals.
retrieve_until_next_level - Setting this to true will remove only as much XP from the book at a time as is needed for the player to reach their next level.
retrieve_xp_orbs - Setting this to true will remove XP from the book in XP orb form. This is useful if you want to use XP from the book for tools enchanted with Mending.
store_until_previous_level - Setting this to true will store only as much XP from the player's XP bar until reaching the previous level, meaning only one level at maximum will be added to the book's storage at a time.

The configuration file for Minecraft versions 1.14.4-1.20.1 can be found in the serverconfig folder of your world.

Further Info

This mod was created by me, following a request by Shivaxi. It is based off of XP Book and was recreated due to a duplication bug in the original mod, as well as a bug which causes the enchanting table to reset each time the book is used. As this mod uses the same modid and item id as the original, the two mods can not be installed at the same time and switching between them will not lose you any items. I did not take any code or assets from the original mod. Yes, v2.0 is still compatible with the "XP Book" mod.

You are allowed to use this mod in any modpack.


 
Come join me on Discord! https://discord.gg/kgZUAxK


Follow me on Twitter for mod updates and other shenanigans! https://twitter.com/bl4ckscor3

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!