https://github.com/chloedawn/gamerules
A library for Minecraft to register and observe game rules
https://github.com/chloedawn/gamerules
fabric-mod minecraft-mod
Last synced: 3 months ago
JSON representation
A library for Minecraft to register and observe game rules
- Host: GitHub
- URL: https://github.com/chloedawn/gamerules
- Owner: ChloeDawn
- License: apache-2.0
- Created: 2019-10-19T12:53:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-21T21:00:47.000Z (over 5 years ago)
- Last Synced: 2025-01-27T19:34:14.093Z (5 months ago)
- Topics: fabric-mod, minecraft-mod
- Language: Java
- Homepage:
- Size: 140 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Game Rules
A library written for Fabric that allows for registration and observation of game rules.
Also includes rule implementations for doubles, enums, floats, and strings. The library
is lightweight and intended to be packaged within compiled mod jars rather than be an
external dependency.#### Developer Setup
**Add JitPack's maven to your project repositories:**
```groovy
maven { url 'https://jitpack.io' }
```
---
**Add the library to your project dependencies:**
- `modImplementation` ensures the library is present at compile time
- `include` packages the library within your mod jar when it is built
```groovy
modImplementation 'io.github.chloedawn:gamerules:0.1.0'
include 'io.github.chloedawn:gamerules:0.1.0'
```#### Kotlin API Notice
When using the Kotlin API of this library, please be aware that the Kotlin standard
libraries are not provided natively, it is dependant on the library user to provide
them at runtime and in the project environment. The library is configured this way
in order to create the smallest package footprint possible for Java-only dependants.