All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Exclusions Lib

Exclusions Lib

by Athebyne • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

A library for giving you more levers to use in vanilla json files.

Everything here is only needed on the server, and not the client, so feel free to build your datapacks based off of this!

Current Features: -A new block predicate, exclusions_lib:overlaps_structure: This predicate will take a block position (adjusted by an optional offset field, like most other predicates), and optionally a structures and/or range, and check whether it would overlap a structure. With a structures field, it only checks for certain structures, and with a value for a range (max 32), it will instead check an area around the position.

Use this to stop features from being placed overlapping structures! Or maybe you'd want an ore that only generates near a certain structure?

-Tag Exclusions (NOT IN NEOFORGE VERSION AS NEO ALREADY HAS THESE BUILT IN): Basically a blacklist field for tags. Want to make a tag that contains everything in #minecraft:small_flowers, except for wither roses? But you still want it to be compatible with every other mod that would add new flowers? Just add wither roses with its "excluded" field set to true, and now you've made a "normal flowers" tag! Is very powerful, allowing you to do all sorts of things, like removing other mod's edge case items from your own tags, while still keeping their item in the common tag you're pulling from, or even straight up removing entries from other mods' tags (or vanilla) yourself!

Example Usage, for a tag that will contain everything in #minecraft:small_flowers, EXCEPT for wither roses, along with a couple other things:


  "values": [
    "#minecraft:small_flowers",
    {
      "id": "minecraft:wither_rose",
      "excluded": true
    },
    "minecraft:apple",
    "minecraft:waxed_exposed_cut_copper_stairs"
  ]
}```

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
1.21.1
Neoforge
9mo ago 1
1.21.6
Fabric
last yr. 1
1.21.1
Neoforge
last yr. 1
1.21.1
Fabric
last yr. 1
1.20.1
Forge
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
Fixed Crash that somehow nobody reported for several months
Mod now actually works
Ported to 1.21.6!
Ty to Pizzer for submitting the PR!
NEOFORGE VERSION!

doesnt have tag exclusions as neo has those built in
[1.0.2] Exclusions Lib 1.0.2 by Athebyne on Feb 09, 2025
Download
Ported to 1.21!
Forge Port!!
Now works with connector!
[1.0.2] Exclusions Lib 1.0.2 by Athebyne on Nov 12, 2024
Download
HOTFIX:
Fixed issue where the game crashes.
Oops
[1.0.1] Exclusions Lib 1.0.1 by Athebyne on Nov 12, 2024
Download
HOTFIX:
Removed built in tags used for testing that were left in
[1.0] Exclusions Lib 1.0 by Athebyne on Nov 12, 2024
Download
+ Added Tag Exclusions / Tag Blacklists
[0.6] Exclusions Lib 0.6 by Athebyne on Sep 28, 2024
Download
+ Optimized Chunk generation with the predicate, should hopefully be much faster now. Thanks to Apollo for the help with this!
+ Added support for structure tags, or lists of multiple structures!
  • Renamed the "structure" field to "structures". This will require updates to anything that was using this.
[0.5] Exclusions Lib 0.5 by Athebyne on Sep 23, 2024
Download
Initial Release
Exclusions Lib Icon
Download Exclusions Lib
Select game version
Select platform