Tags
Creators
Details
0.27.0
Compatibility
Changes
Ornithe Standard Libraries 0.27.0
OSL 0.27.0 supports Minecraft versions between Alpha 1.0.1_01 and Release 1.14.4.
Core 0.13.1
Fixed NoSuchMethodErrors when calling namespaced/prefixed/subidentifier methods on Vanilla's Identifier in Minecraft 1.8.
Items 0.3.4
Added post-init callback for internal use.
Enchantments 0.1.0
API for registering enchantments.
package com.example;
import net.ornithemc.osl.enchantments.api.EnchantmentEvents;
import net.ornithemc.osl.entrypoints.api.ModInitializer;
public class ExampleInitializer implements ModInitializer {
@Override
public void init() {
EnchantmentEvents.REGISTER_ENCHANTMENTS.register(ExampleEnchantments::init);
}
}
package com.example;
import net.minecraft.enchantment.Enchantment;
import net.ornithemc.osl.core.util.NamespacedIdentifiers;
import net.ornithemc.osl.enchantments.api.EnchantmentRegistry;
public final class ExampleEnchantments {
public static final CookieEnchantment COOKIE = EnchantmentRegistry.register(NamespacedIdentifiers.from("example", "cookie"), new CookieEnchantment());
public static void init() {
}
}
Effects 0.1.0
API for registering status effects.
package com.example;
import net.ornithemc.osl.effects.api.StatusEffectEvents;
import net.ornithemc.osl.entrypoints.api.ModInitializer;
public class ExampleInitializer implements ModInitializer {
@Override
public void init() {
StatusEffectEvents.REGISTER_STATUS_EFFECTS.register(ExampleStatusEffects::init);
}
}
package com.example;
import net.minecraft.entity.living.effect.StatusEffect;
import net.ornithemc.osl.core.util.NamespacedIdentifiers;
import net.ornithemc.osl.effects.api.StatusEffectRegistry;
public final class ExampleStatusEffects {
public static final CookieStatusEffect COOKIE = StatusEffectRegistry.register(NamespacedIdentifiers.from("example", "cookie"), new CookieStatusEffect());
public static void init() {
}
}
Crash Reports 0.2.0
Most Throwables are now caught and logged even in old versions, where previously only Exceptions were caught.
Data Generation 0.2.0
Added language helpers for enchantments and status effects.
Commands 0.2.1
Updated enchantment and status effect argument types to use the new APIs.
Registries 0.5.0
Registry Keys
Expanded the RegistryKeys class with registry keys for enchantment and status effect registries.
Registry Sync
Fixed registry mappings never saving in 1.7 and above.
Localization 0.2.2
Full stack traces are now logged for IOExceptions that occur during the parsing of translation files.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:EHGtwpJv:ZiTNH2da"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:EHGtwpJv:ZiTNH2da"
}

