diff --git a/Vanilla Plus Plus-1.0.0.mrpack b/Vanilla Plus Plus-1.0.0.mrpack index 67d436b..43a3fa9 100644 Binary files a/Vanilla Plus Plus-1.0.0.mrpack and b/Vanilla Plus Plus-1.0.0.mrpack differ diff --git a/config/item_obliterator.json5 b/config/item_obliterator.json5 new file mode 100644 index 0000000..e91b2ea --- /dev/null +++ b/config/item_obliterator.json5 @@ -0,0 +1,60 @@ +{ + // ----------------------------------------------------------- + // 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": [ + "beansbackpacks:backpack", + "beansbackpacks:metal_backpack", + "beansbackpacks:winged_backpack", + "beansbackpacks:ender_backpack", + "beansbackpacks:lock" + ], + // ----------------------------------------------------------- + // 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": [ + ], + // ----------------------------------------------------------- + // 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 +} \ No newline at end of file diff --git a/index.toml b/index.toml index 39a16ea..6ea11cf 100644 --- a/index.toml +++ b/index.toml @@ -4,6 +4,10 @@ hash-format = "sha256" file = "README.md" hash = "5ce6e50fd29658a5e612978c86a555ec7f1260089ec221d0594b37714612901c" +[[files]] +file = "config/item_obliterator.json5" +hash = "4b7686fc8b5d365b204be4bca9b516b599863bd1df90673338aa17875f817806" + [[files]] file = "configureddefaults/config/DistantHorizons.toml" hash = "da2034687d2a8a2ecfb0c1ca07f756e02b3b2266b1f11a5566d9dcaa5af3118a" diff --git a/pack.toml b/pack.toml index 9deca61..718b9d0 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "c3f987c168416747ed15edf40278b28123464c5c909edae93465a879f8f9515e" +hash = "3a221d24b6d107f486e7101020f16b0a0a60ec93d49a32670df8dfcaae40b211" [versions] minecraft = "1.20.1"