跳到正文

Interactive Enchanted Books

作者:Bristn

Openable Enchanted Books. Placeable in Lecterns. Unique particle for each enchantment. Enchantment cloning & more

收藏

截图

介绍

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

Icon header

Tags header

Client header

Openable Enchanted Books

Using an Enchanted Book shows information about the enchantments. This includes a detailed description, the list of mutually exclusive enchantments, the comparator signal and the list of supported items.

Preview when right-clicking with Enchanted Book

Besides the enchantment details, the book screen also includes information panels showing the requirements for spawning particles and for cloning Enchanted Books. These panels are only shown if the mod is also installed on the server

Preview for info panels

Intentions/Reasoning
  • Seeing the enchantment details without having to leave the game.
  • In comparison to other similar mods the book menu is more diegetic than simply showing the enchantment details in the tooltip of the item.

Server header

Placeable Enchanted Books in lecterns

Enchanted Books can be placed in lecterns. Opening the lectern will show the same interface as opening the book regularly.

Preview when placing the Enchanted Book in a lectern

Intentions/Reasoning
  • Parity with written books
  • Allows for the other features related to Enchanted Books in lecterns

Comparator signals

The enchantments are separated into groups, each emitting a different comparator signal strength. This signal strength is also shown in the book screen.

Comparator signal preview

List of all comparator signal strengths

| Power | Description | Enchantments |
| —– | ———————– | ———————————————————————————————————————————————————————————– |
| 1 | Cover page | |
| 2 | Universal |

  • Mending
  • Unbreaking

|
| 3 | Curses |

  • Curse of Binding
  • Curse of Vanishing

|
| 4 | Universal armor |

  • Protection
  • Blast Protection
  • Fire Protection
  • Projectile Protection

|
| 5 | Helmets |

  • Aqua Affinity
  • Respiration

|
| 6 | Chestplates |

  • Thorns
    • Not chestplate exclusive
    • Ensures category has one entry

|
| 7 | Leggings |

  • Swift Sneak

|
| 8 | Boots |

  • Depth Strider
  • Feather Falling
  • Frost Walker
  • Soul Speed

|
| 9 | Mining tools |

  • Efficiency
  • Fortune
  • Silk Touch

|
| 10 | Melee weapons damaging |

  • Sharpness
  • Smite
  • Bane of Arthropods
  • Impaling
  • Density
  • Breach

|
| 11 | Melee weapons utility |

  • Fire Aspect
  • Sweeping Edge
  • Knockback
  • Looting
  • Wind Burst
  • Lunge

|
| 12 | Ranged weapons damaging |

  • Power

|
| 13 | Ranged weapons utility |

  • Punch
  • Infinity
  • Flame
  • Multishot
  • Quick Charge
  • Piercing
  • Channeling
  • Loyalty
  • Riptide

|
| 14 | Other tools |

  • Lure
  • Luck of the Sea

|
| 15 | None/unused | |

Intentions/Reasoning
  • Enables basic sorting of Enchanted Books based on their enchantments
  • Allows encoding of a redstone signal strength sequence based on the enchantments of the book

Particle header

Lecterns emit particle effects based on the enchantments of the currently selected page. If the cover page is selected, the particles will cycle randomly through the contained enchantments.

The particle lifetime is based on the count of books contained in nearby chiseled bookshelves. If there is no bookshelf or it is empty, no particles will be emitted.

Preview for particle requirements

| | |
| —————————————————————————————————- | ————————————————————————————————————- |
| Mending particle

Mending

| Feather Falling particle

Feather Falling

|
| Frost Walker particle

Frost Walker

| All 3 enchantments

All 3 particles

|

List of all particle textures

Admittedly most of the particle textures can be seen as programmer art

| Texture | Name | Texture | Name | Texture | Name |
| —————————————————————————————————————————————————————————————————— | —————— | ————————————————————————————————————————————————————————————————————— | ——————— | —————————————————————————————————————————————————————————————————– | —————- |
| Aqua affinity | Aqua affinity | Bane of arthropods | Bane of arthropods | Blast protection | Blast protection |
| Breach | Breach | Channeling | Channeling | Curse of Binding | Curse of Binding |
| Curse of Vanishing | Curse of Vanishing | Density | Density | Depth strider | Depth strider |
| Efficiency | Efficiency | Feather falling | Feather falling | Fire aspect | Fire aspect |
| Fire protection | Fire protection | Flame | Flame | Fortune | Fortune |
| Frost walker | Frost walker | Impaling | Impaling | Infinity | Infinity |
| Knockback | Knockback | Looting | Looting | Loyalty | Loyalty |
| Luck of the sea | Luck of the sea | Lunge | Lunge | Lure | Lure |
| Mending | Mending | Multishot | Multishot | Piercing | Piercing |
| Power | Power | Projectile protection | Projectile protection | Protection | Protection |
| Punch | Punch | Quick charge | Quick charge | Respiration | Respiration |
| Riptide | Riptide | Sharpness | Sharpness | Silk touch | Silk touch |
| Smite | Smite | Soul speed | Soul speed | Sweeping edge | Sweeping edge |
| Swift sneak | Swift sneak | Thorns | Thorns | Unbreaking | Unbreaking |
| Wind burst | Wind burst | | | | |

Intentions/Reasoning
  • Allows an easy way of spawning a variety of particle effects.
  • The other redstone related features enabling a dynamic way of changing particle textures and lifetime.

Hopper integration

Disable with: /gamerule interactive_enchanted_books:hopper_interacts_with_lectern false

Hoppers are able to place written or Enchanted Books in lecterns. Additionally they are able to remove the active book of a lectern.

Preview of the hopper interactions

Intentions/Reasoning
  • Parity with other block entities and behaviour. Not being able to place books in lecterns using hoppers seems like an oversight in vanilla
  • Allows for greater control over the enchantment particles of this mod

Signal changing page

Disable with: /gamerule interactive_enchanted_books:signal_changes_lectern_page false

Sending a redstone signal to the lectern increments the shown page. If the last page is reached, the lectern will loop back to the first page. This disables the default behaviour of page changes emitting a redstone signal. Observers will still detect the page change

Signal changing page preview

Intentions/Reasoning
  • As lecterns with Enchanted Books emit particles based on the current page, changing the page with a redstone signal allows dynamic control over which particle is currently shown
  • In combination with the chiseled bookshelves, this allows for flexible particle effects

Echo header

Disable with: /gamerule interactive_enchanted_books:craftable_enchantment_echo false

The Enchantment Echo clones the enchantments of the original item without destroying it and can be interacted with just as a regular Enchanted Book (see previous features). Combining the Enchantment Echo with an Echo Shard converts it into an Enchanted Book.

| | |
| ——————————————————————— | ——————————————————————————– |
| Echo crafting | Enchanted Book crafting |

Echo crafting in game

Intentions/Reasoning
  • The Enchantment Echos allow easier usage of the other mod features, such as comparator signal and particles, without having to combine multiple Enchanted Books
  • The ability to create an Enchantment Echo from an already enchanted item enables easier insight into the enchantment details. When playing a modpack it’s easy to find items with tons of enchantments without knowing most of them. Enchantment Echos provide an easy way to preview the details in game
  • The conversion to a real Enchanted Book is intended to reduce the need for villagers while not being too overpowered, as Echo Shards are a finite end game resource.

Modpack header

Feel free to use this mod in any modpacks. Like with any other mod, you should backup your world before adding this mod. To check if there might be any compatibility issues with other mods, create a superflat world and run the command /test run interactive_enchanted_books:*. These tests probably don’t cover all edge cases, but are a good start to find any major problems. The tests can be cleared using /test clearall


Integration header

See the example repository for more details on how to integrate custom enchantments.

常见问题

Interactive Enchanted Books 支持哪些 Minecraft 版本?

Interactive Enchanted Books 支持 Minecraft Java 版 26.1–26.3,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Interactive Enchanted Books 怎么安装?

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

评论

登录后评论和评分

Bristn 的其他作品

查看全部 →