Skip to content

Commit

Permalink
mod(client&server): configured item obliterator to removed some ae2 s…
Browse files Browse the repository at this point in the history
…tuff
  • Loading branch information
Conquerix committed May 10, 2024
1 parent 74b0175 commit 0c3e23c
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 0 deletions.
74 changes: 74 additions & 0 deletions client/config/item_obliterator.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
// -----------------------------------------------------------
// 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": [
"ae2:entropy_manipulator",
"ae2:wireless_terminal",
"ae2:wireless_crafting_terminal",
"ae2:charged_staff",
"ae2:portable_item_cell_1k",
"ae2:portable_item_cell_4k",
"ae2:portable_item_cell_16k",
"ae2:portable_item_cell_64k",
"ae2:portable_item_cell_256k",
"ae2:portable_fluid_cell_1k",
"ae2:portable_fluid_cell_4k",
"ae2:portable_fluid_cell_16k",
"ae2:portable_fluid_cell_64k",
"ae2:portable_fluid_cell_256k",
"ae2:wireless_access_point",
"ae2:wireless_receiver",
"ae2:wireless_booster",
"ae2:quatum_ring",
"ae2:quantum_link",
"ae2:spatial_anchor"
],
// -----------------------------------------------------------
// 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
}
74 changes: 74 additions & 0 deletions server/config/item_obliterator.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
// -----------------------------------------------------------
// 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": [
"ae2:entropy_manipulator",
"ae2:wireless_terminal",
"ae2:wireless_crafting_terminal",
"ae2:charged_staff",
"ae2:portable_item_cell_1k",
"ae2:portable_item_cell_4k",
"ae2:portable_item_cell_16k",
"ae2:portable_item_cell_64k",
"ae2:portable_item_cell_256k",
"ae2:portable_fluid_cell_1k",
"ae2:portable_fluid_cell_4k",
"ae2:portable_fluid_cell_16k",
"ae2:portable_fluid_cell_64k",
"ae2:portable_fluid_cell_256k",
"ae2:wireless_access_point",
"ae2:wireless_receiver",
"ae2:wireless_booster",
"ae2:quatum_ring",
"ae2:quantum_link",
"ae2:spatial_anchor"
],
// -----------------------------------------------------------
// 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
}

0 comments on commit 0c3e23c

Please sign in to comment.