#Remove an enchantment/potion/tipped arrow?

43 messages · Page 1 of 1 (latest)

summer breach
#

Is it possible to disable/remove these enchantments from the game? (loottables/JEI/recipes/trades/etc.)

The ones that are not disabled in this image don't have a config option to do so.

Thank you!

cobalt marlinBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

summer breach
#

Remove an enchantment/potion/tipped arrow?

fair olive
#

i believe morejs can do enchantment removal, brewing recipe removal and trade removal

plush elkBOT
#

MoreJS is a KubeJS addon with additional events for villager/wanderer trades, structures, the enchantment table, potion brewing and more.

summer breach
#

Does anyone know how to remove tags from enchanted books?
Specifically this item:
<item:minecraft:enchanted_book>.withTag({StoredEnchantments: [{lvl: 1, id: "apotheosis:rebounding"}]})

This is how I can remove tags from other items:

IServerEvents.tags('item', event => {
    event.removeAllTagsFrom('betteranimalsplus:calamari_raw')
})```
tall oyster
#

I don't thing MoreJS actually can remove enchantments. The only easy way I have found enchantment removals is through Quark's configuration. But not worth installing Quark if that is ALL you are doing.

summer breach
tall oyster
#

Why are you removing tags? I don't think that is a true tag but NBT data converted to a tag

#

potions and enchantment books are just minecraft:potion or minecraft:enchanted_book with NBT data added to it to create the different potions/effects

summer breach
#

I figured removing tags would be an easy way to prevent non-tagged enchants from being used, as they wouldn't technically be enchanted books anymore

tall oyster
#

Doesn't work with potions/books. You'd need to strip the nbt

summer breach
#

I see

#

How can you remove the NBT?

summer breach
tall oyster
#

please turn off pings when you are responding, but I'd assume so

summer breach
#

Also, regarding the blacklist in Quark, would I just need to do this? (would it cover all of the levels for that type of enchant?

#A list of enchantment IDs you don't want the enchantment table to be able to create
        "Disallowed Enchantments" = ["additionaladditions:speed]"```
#

How can you turn off pings when responding? (sorry) Isn't that something the end user does locally? (i.e. you)

tall oyster
summer breach
#

I am trying to remove entire enchantments

tall oyster
#

Removing the enchantment in Quark I think removes every instance of it even if it is on arrows etc

summer breach
#

oh perfect

#

Sadly it doesn't seem to be working. I don't think that blacklist is enabled if "Matrix Enchanting" = false I'm going to ask in their discord

tall oyster
#

I am using it

tall oyster
#

Also I think that is the wrong config, that looks like Quark Oddities

summer breach
#

Yes that is the oddities file it seems

#

Actually, this code is in the quark-common.toml

tall oyster
#

That is disallowing for oddities

summer breach
#

oh..

tall oyster
#

You need the enchantments to begone

#

removes enchantments from the game entirely

summer breach
#

I see. To confirm it is here?

        "Enchantments To Begone" = []```
tall oyster
#

Correct

summer breach
#

perfect

summer breach
#

It didn't work 😦

summer breach
# tall oyster Correct

Do you know if it is possible to remove NBT data?
Also, are some enchantments not able to be disabled via "Enchantments To Begone"? (also, sorry for the ping, I don't know if it is still disabled, or if you need to do that for each reply)

summer breach
#

I'm not sure if my syntax is wrong or if I need to do something else?

tall oyster
#

So it isn't going to remove books already made but they should not be in loot drops or in the enchanting table. It also does not remove it from jei apparently.

#

Also MoreJS DOES remove potions from being allowed to be brewed.

    /**
     * Removes all potions where an awkward potion is used as theb base potion ingredient.
     * 1. Argument: The input potion id to filter.
     * 2. Argument: The ingredient to filter.
     * 3. Argument: The result potion id to filter.
     * Passing `null` counts as a wildcard.
     */
    event.removeByPotion("minecraft:awkward", null, null);
});```

Then you might be able to perform some magic in lootjs to remove just certain potions from drops
summer breach
#

Does anyone know how to remove an enchantment from an entity on entity spawn? Specifically, I still want them to keep their gear with all the other effects on it, but just to remove that one enchantment.