So I’ve made a few videos recently showing off some custom enchantments that I made I figured I should probably make a video showing how to make custom enchantments as you can see this enchanting book has a custom enchantment on it if we throw on the ground with This bow six events are triggered each one of these command blocks runs one of those events so in the first the Bo’s data is updated to have the enchant the next three are just for show so it’s the sound effect and two particle effects the fifth one reduces the players XP by Eight and number five just kills the book as you can see the bow now has the enjoyment to the enchantment that you can see is actually only cosmetic it doesn’t do anything what you don’t see is that both the bow and the book have a custom tag on them which is what Actually acts as the enchantment this means that when I actually shoot the bow it has the enchantment effect so in this case it’s just teleporting me I’m gonna show you the commands in notes because it’s easier to explain and to show you that way the first command is just the Give command for the book it’s nothing particularly special as you can see it’s just giving us an enchanting book with two NBT tags so one is the actual cosmetic instrument so this is what you see so it’s just the law with the text and the color and such and then the Other one is a custom NBT tag called ender book one as you can see the first four commands are running as an item entity that’s on the ground with the tag and a book one this of course means that the commands only actually run once the Book has hit the ground so what the first command book does is check if the closest entity or the closest player sorry has at least eight levels if so it uses this selector here to check for one boh item entity that’s within point two blocks of the end of book entity if it Finds this entity it then runs the data merge entity command as that entity what this does is updates the NBT tags of the BOA item entity so that it now has the cosmetic enchantment bit so this just puts the puts the law there with a color and such it gives it the enchantment Glow you know the way that wall enchanted items connect glitter and shine and it also gives it the custom NBT tag that we use for the enchantment if this command is successful it then triggers the rest of the commands the first three of these are just purely Cosmetic so that’s the sound effect and the two particle effects as you can see this next command is then executed as the bow rather than the book this is the one that takes away your XP levels before it does take away your levels though it has to check whether There’s an item within 0.2 blocks of the bow item that has the tag end a book one this is just the way to make it a bit more multiplayer friendly because what this does is it means that if anybody’s dropped their bow like somewhere else without the intent of entrancing it then They won’t get charged for the XP levels for no reason the last command is executed as the Bergin and what it does is it just runs the kill command kill all entities within point two blocks of the bow of the type item where the end of attack so basically just kills the Book this is just one way of getting custom tags onto items and I think it works really well it just means that the player needs the book and then they can apply it to weapons that already have other enchantments on it I hope this video has helped you and have a good day You Video Information
This video, titled ‘How to Make Custom Enchantments in Minecraft!’, was uploaded by ERROR 422 on 2020-05-20 15:33:06. It has garnered 6025 views and 124 likes. The duration of the video is 00:03:32 or 212 seconds.
If you’ve ever wanted to make a custom book of enchanting here’s how to do it! If you have any questions feel free to ask in the comments!
Just replace the “NAME”, “ITEM TYPE”, “BOOKTAG”, and “TAG” markers in the following commands:
/give @p minecraft:enchanted_book{BOOKTAG:1,display:{Lore:[‘{“text”:”NAME”,”italic”:false,”color”:”gray”}’]}}
execute at @e[type=item,nbt={OnGround:1b,Item:{tag:{BOOKTAG:1}}}] if entity @p[level=8..] as @e[type=item,distance=…2,nbt={Item:{id:”ITEM TYPE”}}] run data merge entity @s {Item:{tag:{TAG:1,Enchantments:[{lvl: 1s}],display:{Lore:[‘{“text”:”NAME”,”italic”:false,”color”:”gray”}’]}}}}
execute at @e[type=item,nbt={OnGround:1b,Item:{tag:{BOOKTAG:1}}}] run playsound minecraft:block.beacon.activate ambient @a execute at @e[type=item,nbt={OnGround:1b,Item:{tag:{BOOKTAG:1}}}] run particle minecraft:enchant ~ ~1 ~ .1 .1 .1 1 30 execute at @e[type=item,nbt={OnGround:1b,Item:{tag:{BOOKTAG:1}}}] run particle minecraft:poof ~ ~.1 ~ .1 .1 .1 0 5
execute at @e[type=item,nbt={OnGround:1b,Item:{tag:{TAG:1}}}] if entity @e[limit=1,distance=…2,type=item,nbt={Item:{tag:{BOOKTAG:1}}}] run experience add @p -8 levels
execute at @e[type=item,nbt={OnGround:1b,Item:{tag:{TAG:1}}}] run kill @e[limit=1,distance=…2,type=item,nbt={Item:{tag:{BOOKTAG:1}}}]
Music: Dj Quads – Ride Of Joy [No Copyright Music]: https://www.youtube.com/watch?v=q4eGzmEgZ9c Syn Cole – Feel Good: https://www.youtube.com/watch?v=q1ULJ92aldE