#Enchantments not working

1 messages · Page 1 of 1 (latest)

tardy wagon
#

I need help with datapack enchantments. I made two different enhancements, and when I added the second enhancement, it never worked, and neither of the enhancements even showed up when I tried to test out the enhancements. I looked it up, but I couldn't find anything.

visual marlinBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

tardy wagon
#

I use the /enchant command to test the new enchantments I made, and it usually works, but for some reason, on the /enchant, the custom enchantments won't show up anymore. I really could use some help.

visual marlinBOT
# visual marlin <@&1201956957406109788>

<@&1166082198152159386> <@&1202694677766348840>

🙇 Helpers Arise!

Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)

tardy wagon
#

Btw my time zone is JST, so sry if I don't reply for a while. I might be sleeping or at school

versed ingot
#

You may have to reload the game

#

Enchantments don't work with /reload, you need to actually save and quit and then reopen the world

tardy wagon
#

kk let me try

#

It still won't show the enchantments

#

Imma try again just in case

#

When I tried to open up the world it said this

#

Hi, sorry, it's pretty late for me, and I have school, so I have got to go to bed. sry, let's do this maybe tmrw

#

gn

versed ingot
#

This means that you have an error somewhere

#

What do your enchantments do?

#

^^

sonic horizon
#

whenever you're back, check output logs and send your enchantment files

woven oasisBOT
#
Logs

When making or debugging Minecraft datapacks, it is useful to have the Minecraft logs open in order to view errors quickly.

To open the logs:

  1. Enable the logs in the Minecraft Launcher (see image)
  2. Start Minecraft

The logs should open in a separate window. Datapack errors are shown in the when you /reload and are almost always in red text or yellow text.

tardy wagon
#

Hi i just got back from school, should I take a screenshot of the logs?

viral warren
#

Just look at the errors

#

If you can’t discern them, send them - but only the relevant part

tardy wagon
#

kk

#

Btw i use clients and stuff and the logs are gonna be on modrith is that okay?

north socket
#

I saw it on yt.

tardy wagon
#

Idk I saw it as well but it works perfectly for me

north socket
#

So, not too dangerous unless u send important information in the chat there.

tardy wagon
#

ye

#

i just really like the cosmetics

#

btw do you know wats wrong with the datapack by chance?

north socket
#

I think you can see why.

tardy wagon
#

Alr thx for trying

north socket
tardy wagon
#

I look at the /enchant and see if its there

north socket
north socket
north socket
tardy wagon
#

idk

swift sinew
#

you can make custom enchantments but custom sounds can only be added through resource packs.

tardy wagon
#

im kinda a beginner with datapacks

tardy wagon
# versed ingot What do your enchantments do?

I have leech enchant where if u kill something, you heal a little. I also have lucky orb, which can give 2 times the XP. Finally, I have step up, which can make your step height to 2 blocks

tardy wagon
#

like the code?

versed ingot
#

Yep!

tardy wagon
#

Lucky Orb

#

Step Up

versed ingot
#

@tardy wagon Alright, so....

#
  1. Did you generate these using Misode, or did you write them urself?
  2. Are you sure the conditions for Leech specifically work? I'm not sure that the predicate looks functional, and if it isn't, you've definitely found your error!
  3. You should probably give the Step Up modifier a name besides "minecraft:", even a string of random numbers or letters will do
  4. You can use item tags in "supported_items", such as #minecraft:chest_armor and #minecraft:swords. There is a full list of all tags on the wiki. Just make sure to not put it in [square brackets].
  5. Side note, you don't need to include books and enchanted books as supported items, it is implied
north socket
versed ingot
#

I hope this helps! Remember, one pesky error will make you datapack unplayable until fixed, so you likely have one little thing wrong somewhere ^^

tardy wagon
#

Thank you so much I will try once I get back from school!

tardy wagon
#

I never got to test leech because that’s when I couldn’t use the enchantments anymore

#

Or step up

visual marlinBOT
#
Question Closed

Your question, #1346093824140906546 (Enchantments not working), was resolved!

Original Message

#1346093824140906546 message

Duration open

1d16h36m