Skip to content

Apotheosis + CC: Tweaked #2110

Answered by SquidDev
77EnderGuy77 asked this question in Q&A
Feb 24, 2025 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

What do you mean by "read" here? So from a normal item/inventory, yes. For instance, you can do this to read an enchanted book/items.

local inventory = peripheral.find("minecraft:chest")
local item = inventory.getItemDetail(1)
if item.enchantments then
  for _, enchantment in ipairs(item.enchantments) do
    print(enchantment.displayName .. " lvl " .. enchantment.level)
  end
end

Though no, not for the Library of Alexandria.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@77EnderGuy77
Comment options

@SquidDev
Comment options

Answer selected by 77EnderGuy77
@77EnderGuy77
Comment options

@SquidDev
Comment options

@77EnderGuy77
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants