Exclusions Lib

Exclusions Lib

Mod

A library for reducing headaches when working with json, and to give datapack makers new levers to play with!

Server LibraryWorld Generation

734 downloads
0 followers
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

A library for giving you more levers to use in vanilla json files. This project is currently heavily WIP, and missing several of the features I intend to add, but it is still usable, and works perfectly fine!

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?

Planned Features (NOT YET IMPLEMENTED): -Tag Exclusions: 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 to a new optional "excludes" field, and now you've made a "normal flowers" tag! -Port to other versions and modloaders.


Project members

Athebyne

Member

Details

Licensed CC-BY-4.0
Published a month ago
Updated a month ago