← Назад к ресурсам

Silicate

A library providing powerful client-server-agnostic predicates with a simple API.

Modrinth cursed game-mechanics library

Описание

# Silicate Silicate (or "silly predicates") is a library that provides powerful client-server-agnostic predicates with a simple API. ## Important This library is **new; use it with caution.** The API may change frequently, and not all features have been implemented. Check the issue tracker for updates. ## Usage Add this to your `build.gradle`(`.kts`) ```gradle repositories { exclusiveContent { forRepositories( maven("https://maven.greenhouse.lgbt/releases") { name = "Greenhouse" } ) filter { includeGroup("lgbt.greenhouse.silicate") } } } dependencies { // If using multiloader, use each platform as below for silicate in their respective modules compileOnly("net.modgarden.silicate:silicate-xplat:VERSION") runtimeOnly("net.modgarden.silicate:silicate-PLATFORM:VERSION") // If using multiloader, put this in your "common" module // compileOnly("net.modgarden.silicate:silicate-xplat:VERSION") } ``` ## Goal The goal of Silicate is to complete a context-aware predicate system on par with Minecraft's Loot Context-aware predicates. Available for Fabric and NeoForge, Silicate provides a common API for interfacing advanced predicates between mods, across platforms. Silicate achieves this by implementing a clean-slate predicate architecture, initially independent of Minecraft. ## Features Silicate provides out-of-the-box Codec and datapack support, enabling developers and modpack designers to more easily implement and configure desired behavior. Silicate also comes with built-in predicates for Minecraft's various game interactions, easing the amount of boilerplate necessary. ## Contributing Before you contribute, please read about [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). This repository uses Conventional Commits for all commit messages, and any non-conforming commit messages will be converted.