• check_circle Recipes
  • 18,051 views, 5 today
  • 3,694 downloads, 1 today
  • 62
  • 63
  • 16
WandererReece's Avatar WandererReece
Level 58 : Grandmaster Miner
139
Arcane Smithing Minecraft Data Pack  Arcane Smithing Minecraft Data Pack

Thought you saw everything a Smithing Table can do? Wait till you add books!

The idea for this pack is simple. Make the Smithing Table transfer enchantments from equipment to books and back again. However, the books created are cyan, not yellow. This means the books are playing by different rules. These rules make it possible to do things like put Protection and Feather Falling on an Elytra.

See video for details.

How to use Smithing Table

To Create Enchanted Book:
Place equipment in slot 1. Place book in slot 2. Take enchanted book.

To Apply Enchantment:
Place cyan enchanted book in slot 1. Place equipment in slot 2. Take enchanted equipment,


Book Types

Yellow Books:
These are what existed BST, Before Smithing Table. These books appear to not work in the Smithing Table, but they continue to function in an Anvil.

Cyan Books:
These are created by the Smithing Table. They will not work in an Anvil. They are used to store and apply enchantments at the Smithing Table. They record enchantments, durability, anvil work, and names. Due to how the Smithing Table functions, these books can be used to apply enchantments to items that would normally not accept them.


Warnings

- Books also record Anvil work. Don't be surprised if the anvil wants to charge you 30 xp for something later.
- Books also record durability. They can repair or damage equipment. In some cases, they can create negative durability. However, such equipment can still be repaired. Also negative equipment is NOT invulnerable, and it will be one-shotted.
- Enchantment restrictions don't matter. The Smiting Table can and will put something like Protection on something like a sword. Cheaty combos are also possible.
CompatibilityMinecraft 1.16
Tags

2 Update Logs

Update #2 : by WandererReece 07/11/2020 11:06:33 pmJul 11th, 2020

Pack tidied up a lot. All enchanted book recipes are now a single recipe.
LOAD MORE LOGS

Create an account or sign in to comment.

Weak_Pistoo
10/27/2020 8:20 am
Level 1 : New Miner
Weak_Pistoo's Avatar
Only thing that i have a problem with is the previous item gets destroyed, which I think you could make a command to toggle that if you wanted it to be part of the datapack (for balance reasons)
1
WandererReece
11/02/2020 7:21 am
Level 58 : Grandmaster Miner
WandererReece's Avatar
Actually, that's not a bug. Like all other crafting things, the Smithing Table consumes all the ingredients.

It is possible to create a function to "refund" the player, but that would be outside the scope of a simple recipe pack.
1
darkn00b1971
07/19/2020 12:44 pm
Level 1 : New Miner
darkn00b1971's Avatar
Is the cyan book also intended to transfer durability as well? My brand new diamond pick suddenly became half durability after using the book I made in the table...
1
WandererReece
07/20/2020 9:53 pm
Level 58 : Grandmaster Miner
WandererReece's Avatar
Yes, the table transfers practically everything; Names, Durabilities, Enchantments, Colors, Anvil Work, Patterns, etc. If it's stored as NBT data, then it's probably transferred.
2
ironforcefeild
07/12/2020 10:36 am
Level 27 : Expert Miner
ironforcefeild's Avatar
really cool, but a little op. it would be cool if you make cyan/ yellow books need to be charged by throwing a lapiz block on them. you could do this by storing the info of the book then just data merge a few things.
1
popedoca1
06/15/2020 10:08 pm
Level 1 : New Miner
history
popedoca1's Avatar
what the version of snapshot?
1
WandererReece
06/16/2020 4:39 pm
Level 58 : Grandmaster Miner
WandererReece's Avatar
I forget when this was made possible, but the vid shows pre-release 2.
1
User3086197G
06/15/2020 9:05 pm
Level 1 : New Miner
User3086197G's Avatar
Whenever I put a book through the smithing table, it gets rid of the enchants on the item that i want to place the enchantments on. What do i do?
1
AriElM24
06/13/2020 5:13 pm
Level 1 : New Miner
AriElM24's Avatar
Nice work, but i thing it needs a xp cost like the anvil, however it's very good.
1
Bertiecrafter
06/09/2020 2:59 pm
Level 71 : Legendary Engineer
history
Bertiecrafter's Avatar
Ah now I understand your forum thread I came across just today.


keyboard_arrow_upBig Explanation

The difference is that the books the smithing table creates have their enchantments directly applied to the item (Enchantments tag). This means that Sharpness Sword + Book = Sharpness Book.... Which actually does more damage than a normal book.
A knockback book will actually push players back and a fire book will light players on fire.

Then when you combine the the enchanted book with a sword, it moves those enchantments onto the sword.

Now the vanilla books (the yellow ones) use the StoredEnchantments tag, those enchantments are transferred to the Enchantments tag of the weapon, but until then they will not affect the book properties during attacks. Obviously, the reason you cannot use blue books in an anvil, is because they don't have StoredEnchantments. Vice versa, yellow books don't work in the smithing table because the resulting weapon won't be affected by the StoredEnchantments tag that it now has.

The solution is simple: Remove the ability to combine enchanted books with items in the smithing table. Then transfer Enchantments on books to their StoredEnchantments array. I'm doing this from the top of my head, so you'll have to check some item ids and syntax but it should roughly look like this:

1. First make sure to register a tick function (see my tutorials)

2. Every tick, run:
execute as @e[​type=item,nbt={Item:{id:"minecraft:enchanted_book",Count:1b}}] if data entity @s Enchantments[​0] run function <your-namespace>:path/to/function/transfer_enchants
3. In transfer_enchants function:
data modify entity @s StoredEnchantments set from entity @s Enchantments
data remove entity @s Enchantments

1

Welcome