Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable a specific stat or stat level of an enchanted book #48

Closed
abm991 opened this issue Jun 6, 2024 · 1 comment
Closed

Comments

@abm991
Copy link

abm991 commented Jun 6, 2024

Here's my config file:
{
// -----------------------------------------------------------
// Item Obliterator by ElocinDev
// -----------------------------------------------------------
//
// How to add items?
// - They are json strings, so you need to separate each
// entry with a comma, except the last
// - If you start an entry with !, it will be treated as a regular expression
// Example: "!minecraft:.*_sword" to disable all swords
//
// -----------------------------------------------------------
// Do not touch this
"configVersion": 2,
// -----------------------------------------------------------
// Items here will be unusable completely
// Example: minecraft:diamond
"blacklisted_items": [
"examplemod:example_item",
"fwaystones:void_totem",
"biomemakeover:enchanted_totem"
],
// -----------------------------------------------------------
// Removes an item if it contains certain nbt tag. If the whole entry (or expression) is present, the item gets removed.
// Use with caution! This is a very expensive operation and can cause lag if you have a lot of items blacklisted.
//
// Example to disable a regeneration potion: Potion:"minecraft:regeneration"
//
// You can also use regular expressions by starting the value with !
"blacklisted_nbt": ["enchanted book"minecraft:death_trade""],
// -----------------------------------------------------------
// Items here will not be able to be right-clicked (Interact)
// Example: minecraft:apple
"only_disable_interactions": [
"examplemod:example_item"
],
// -----------------------------------------------------------
// Items here will not be able to be used to attack
// Example: minecraft:diamond_sword
"only_disable_attacks": [
"examplemod:example_item"
],
// -----------------------------------------------------------
// Items here will get their recipes disabled
// Keep in mind this already is applied to blacklisted items
"only_disable_recipes": [
"examplemod:example_item"
],
// -----------------------------------------------------------
// If true, the mod will use a hashset to handle the blacklisted items
// This is a more optimized approach only if you have a lot of items blacklisted (20 or more is recommended)
// If you just have a small amount of items blacklisted, keep this false
//
// [!] Enabling this will disable all regular expressions
// [!] Does not apply to NBT, only item blacklist / interaction / attack
"use_hashmap_optimizations": false
}

@nvb-uy
Copy link
Owner

nvb-uy commented Jun 13, 2024

Use the /data command to see how certain nbt applies, then add that nbt to the blacklist

@nvb-uy nvb-uy closed this as completed Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants