Arnicalib-mcmod - Shared library for AH's Minecraft mods.

Overview

ArnicaLib

Shared library for AH's Minecraft mods.

GitHub license GitHub Workflow Status   Minecraft Forge AdoptiumOpenJDK Gradle

For Developers

There are two ways to use this mod in your workspace:

GitHub Package (Recommended)

Add the following to your build.gradle:

repositories {
    maven {
        url "https://maven.pkg.github.com/wakelesssloth56/arnicalib-mcmod"
        credentials {
            username = "<GITHUB_USERNAME>"
            password = "<GITHUB_TOKEN>"
        }
    }
}

dependencies {
    implementation "org.auioc.mods.arnicalib:arnicalib-<MINECRAFT_VERSION>:<ARNICALIB_VERSION>:forgelib"
}

Notices

  1. Mod version can be found in the Packages of this repository.
  2. You must provide a valid GitHub username and token to access the GitHub Packages.

Local JAR File

If you do not want to or can not use the GitHub Packages:

  1. Download the forgelib jar of the version you want from Releases, then put them into libs folder.

  2. Add the following to your build.gradle:

    dependencies {
        implementation files("libs/arnicalib-<VERSION>-forgelib.jar")
    }

Documentation

Maintainers

Credits

Contributing

Any type of contribution is welcome, here are some examples of how you may contribute to this project:

License

ArnicaLib is licensed under the GNU General Public License v3.0. The full license is in the LICENSE file.

Comments
  • [QUESTION] 有些奇怪的IP在和我的服务器交互?

    [QUESTION] 有些奇怪的IP在和我的服务器交互?

    Description

    图 https://imgur.com/a/KVyl1ZD

    Environment

    处理器: i3-9100F 系统:Windows 10 专业版 21H2 整合包:FTB inferno Forge版本:40.1.80 Mod版本:arnicalib-1.18.2-5.4.4

    Reproduction steps

    下载FTB Inferno v1.0.0 服务端 启动

    Expected behavior

    No response

    Relevant logs

    No response

    type:question status:wontfix 
    opened by Thirace446 7
  • [BUG] server fails to start

    [BUG] server fails to start

    Description

    [main/FATAL] [mixin/]: Mixin apply failed arnicalib.mixin.json:server.MixinLootContext -> net.minecraft.world.level.storage.loot.LootContext: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException @Shadow field queriedLootTableId was not located in the target class net.minecraft.world.level.storage.loot.LootContext. Using refmap arnicalib.mixin-refmap.json org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow field queriedLootTableId was not located in the target class net.minecraft.world.level.storage.loot.LootContext. Using refmap arnicalib.mixin-refmap.json at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attachFields(MixinPreProcessorStandard.java:629) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:305) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:280) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1288) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:292) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar%2314!/:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-9.1.3.jar%235!/:9.1.3+9.1.3+main.9b69c82a] at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-9.1.3.jar%235!/:?] at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:110) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.lambda$findClass$16(ModuleClassLoader.java:216) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:226) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:216) ~[securejarhandler-1.0.3.jar:?] at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:132) ~[securejarhandler-1.0.3.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?] at net.minecraft.world.level.storage.loot.entries.ComposableEntryContainer.(ComposableEntryContainer.java:10) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at net.minecraft.world.level.storage.loot.entries.LootPoolEntries.(LootPoolEntries.java:15) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at net.minecraft.core.Registry.m_206132_(Registry.java:218) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at net.minecraft.core.Registry.m_205989_(Registry.java:352) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at net.minecraft.core.Registry.m_206036_(Registry.java:300) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at java.util.LinkedHashMap.forEach(LinkedHashMap.java:721) ~[?:?] at net.minecraft.core.Registry.(Registry.java:299) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at net.minecraft.server.Bootstrap.m_135870_(Bootstrap.java:49) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at net.minecraft.server.Main.main(Main.java:98) ~[server-1.18.2-20220404.173914-srg.jar%2347!/:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$launchService$0(CommonServerLaunchHandler.java:32) ~[fmlloader-1.18.2-40.1.60.jar%2317!/:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%235!/:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?]

    Environment

    minecraft version 1.18.2 forge version 40.1.60 java version 17.0.3 by Microsoft

    Reproduction steps

    just put arnicalib alone in the mods folder and the server won't start.

    Expected behavior

    No response

    Relevant logs

    No response

    type:bug status:invalid mod:mixin 
    opened by ibox233 7
  • [BUG] Crash on launch with latest version

    [BUG] Crash on launch with latest version

    Description

    After updating to Arnicalib 5.6.1 the game crashes immediately on launch

    Environment

    running the FTB Inferno modpack mc 1.18.2 forge 40.1.80 Arnicalib 5.6.1

    Reproduction steps

    Update Arnicalib to 5.6.1 from 5.4.4 in the pack and experience the crash, 5.4.4 does not crash

    Expected behavior

    To not crash

    Relevant logs

    https://gist.github.com/Saereth/ffc47ae03a7c47b50b5586b3baf2f416

    type:bug state:approved mod:mixin area:compatibility 
    opened by Saereth 5
  • [SUGGESTION] 1.18.2 Console spam

    [SUGGESTION] 1.18.2 Console spam

    Description

    With the mod installed consoles/logs are continually spammed with [Netty Epoll Server IO #2/INFO] [ArnicaLib/ServerListPing]: [/X.X.X.X:XXXXX] <-> InitialHandler has pinged

    We've had several server operators contact us asking how to turn this off but I can't seem to find any config options for it

    Environment

    linux ubuntuu 22

    Reproduction steps

    install the mod, observer the console when players are connected

    Expected behavior

    A config option to squelch this would be much appreciated

    Relevant logs

    No response

    type:suggestion state:approved 
    opened by Saereth 1
  • [Bug] RandomUtils percentageChance method validation always fails

    [Bug] RandomUtils percentageChance method validation always fails

    Caused by: java.lang.IllegalArgumentException: The left bound must be less than the right bound
            at org.apache.commons.lang3.Validate.isTrue(Validate.java:158) ~[commons-lang3-3.12.0.jar%2318!/:3.12.0]
            at org.auioc.mods.arnicalib.utils.java.Validate.isBoundedInterval(Validate.java:143) ~[%2381!/:?]
            at org.auioc.mods.arnicalib.utils.java.Validate.isInCloseInterval(Validate.java:181) ~[%2381!/:?]
            at org.auioc.mods.arnicalib.utils.java.RandomUtils.percentageChance(RandomUtils.java:73) ~[%2381!/:?]
    
    type:bug 
    opened by WakelessSloth56 1
  • [BUG] Useless argument in CFH createMessage method

    [BUG] Useless argument in CFH createMessage method

    Description

    https://github.com/auioc/arnicalib-mcmod/blob/7451a845921645c2dcc2dfdee6e1ba5d277de981/src/main/java/org/auioc/mcmod/arnicalib/utils/game/CommandFeedbackHelper.java#L36-L38

    Environment

    N/A

    Reproduction steps

    N/A

    Expected behavior

    No response

    Relevant logs

    No response

    type:bug area:code state:approved 
    opened by WakelessSloth56 0
  • [BUG] Maven pom include mapped forge dependency

    [BUG] Maven pom include mapped forge dependency

    <?xml version="1.0" encoding="UTF-8"?>
    <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.auioc.mcmod</groupId>
      <artifactId>arnicalib</artifactId>
      <version>1.18.2-5.3.0</version>
      <dependencies>
        <dependency>
          <groupId>net.minecraftforge</groupId>
          <artifactId>forge</artifactId>
          <version>1.18.2-40.1.0_mapped_official_1.18.2</version>
          <scope>runtime</scope>
        </dependency>
      </dependencies>
    </project>
    
    type:bug 
    opened by WakelessSloth56 0
  • [BUG] Misspelled method name playerToPlayer

    [BUG] Misspelled method name playerToPlayer

    https://github.com/auioc/arnicalib-mcmod/blob/09884ec8fc9a7b5348c7414e43025b05e8a44f6e/src/main/java/org/auioc/mcmod/arnicalib/utils/game/SoundUtils.java#L34-L36

    type:bug 
    opened by WakelessSloth56 0
  • [Bug] Fraction validator messages missing format arguments

    [Bug] Fraction validator messages missing format arguments

    Caused by: java.util.MissingFormatArgumentException: Format specifier '%s'
            at java.util.Formatter.format(Formatter.java:2688) ~[?:?]
            at java.util.Formatter.format(Formatter.java:2625) ~[?:?]
            at java.lang.String.format(String.java:4140) ~[?:?]
            at org.apache.commons.lang3.Validate.isTrue(Validate.java:158) ~[commons-lang3-3.12.0.jar%2318!/:3.12.0]
            at org.auioc.mods.arnicalib.utils.java.Validate.isFractionChance(Validate.java:412) ~[%2381!/:?]
            at org.auioc.mods.arnicalib.utils.java.RandomUtils.fractionChance(RandomUtils.java:93) ~[%2381!/:?]
    
    type:bug 
    opened by WakelessSloth56 0
  • [Bug] ServerPlayerEvent getPlayer method return type is incorrect

    [Bug] ServerPlayerEvent getPlayer method return type is incorrect

    https://github.com/auioc/arnicalib-mcmod/blob/0483f9ab69910f6df5b8400e4ba908390755665c/src/main/java/org/auioc/mods/arnicalib/api/game/event/ServerPlayerEvent.java#L16-L18

    Expected return value type should be ServerPlayer.

    type:bug 
    opened by WakelessSloth56 0
Releases(v5.6.5)
Load ModLoader mods as if they were FabricLoader mods.

Fabricated ModLoader Load ModLoader mods as if they were FabricLoader mods. Currently, only mod folder mods are supported, mods with class edits are u

Cat Core 21 Dec 6, 2022
Modifications to the Minecraft base files to assist in compatibility between mods.

MinecraftForge Forge is a free, open-source modding API all of your favourite mods use! Version Support 1.16.x Active 1.15.x LTS Download Forum Discor

Minecraft Forge 5.9k Jan 3, 2023
Equivalent Exchange 3 Apache 2 Equivalent Exchange 3 pahimar Equivalent-Exchange-3. Mods for Minecraft. License: Apache 2 , .

Welcome to Equivalent Exchange 3! All versions are available here Minecraft Forums page Compiling EE3 - For those that want the latest unreleased feat

Rob Davis 709 Dec 15, 2022
A minecraft forge lib that is used by most of my mods.

MatyLib A minecraft forge lib that is used by most of my mods. Installing (for modders) Before installing, please decide on what version you want, by

matyrobbrt 2 Jan 7, 2022
COMMA Config API is an API allowing you to easily create complex and stylish config menu screens for Minecraft Fabric mods

COMMA Config API is an API allowing you to easily create complex and stylish config menu screens for Minecraft Fabric mods. COMMA stands for Configurable Options Menu Modding API

Dr. Rubisco 1 Jan 13, 2022
A Mindustry mod library provides a multiple-recipe crafter to produce items, fluids, power or even heat for Json and JavaScript mods.

MultiCrafter Lib A Mindustry MultiCrafter lib-mod for Json and JavaScript mods. Please check the instruction. How to Use Please check the instruction

Li plum 24 Dec 27, 2022
Run Fabric Mods on Forge! It's an mod loading api, too (not implemented yet). No any releationship between Python library PILlow.

Pillow Mod Loader 中文 | English Quilt that runs on Forge Not implemented yet. Yes, you can believe it. This mod will make Quilt compatible with Forge.

null 18 Dec 20, 2022
A base for Forge 1.12.2 utility mods to use.

ClientBase Why? I made this for learning and for use in my private client ZWare.cc. TO-DO Add ClickGUI Add HUD and HUDEditor Add Javadocs How to use?

ZWare 50 Dec 2, 2022
Prevent your mods being stolen onto 9minecraft and other reposting sites! Forces the user to download from curseforge, modrinth or a trusted site.

Prevent users from downloading your mods from reposting sites or malicious providers. Powered by the reposting site list from StopModReposts Important

i-am-cal 17 Sep 26, 2021
Prevent your mods being stolen onto 9minecraft and other reposting sites! Redirects the user to download from curseforge, modrinth or a trusted site.

Prevent users from downloading your mods from reposting sites or malicious providers. Powered by the reposting site list from StopModReposts Important

cal6541 17 Sep 26, 2021
It is a graphical tool that allows you to decompile forge mods

Mod-Decompiler It is a graphical tool that allows you to decompile forge mods (from 1.7.10 to 1.12.2). It is still under development, later versions o

null 3 Jun 14, 2022
Duck Library is a library for developers who don't want to spend their time to write same library consistently.

Duck Library is a library for developers who don't want to spend their time to write same library consistently. It has almost every useful feature to

null 5 Jul 28, 2022
A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge.

A mixin based ghost client for Minecraft 1.8.9 built on Minecraft Forge. Originally designed as a MCP Client (called Tephra), it is now being ported t

Peanut 130 Jan 1, 2023
An efficient map viewer for Minecraft seed in a nice GUI with utilities without ever needing to install Minecraft.

To download it head to the Releases section. To run it: either double click it on it if you have the Java Runtime (JRE) or use the command line (shift

Neil 127 Dec 24, 2022
A free mixin-based injection hacked-client for Minecraft using Minecraft Forge.

Custom LiquidBounce 1.8.9 build that aims to improve original visuals and bypasses, along with built-in ViaVersion to help you change from 1.8 to 1.17.1 without creating any other version branch.

epic group of paster 123 Jan 2, 2023
Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cross-chatting between Minecraft and Discord.

DiscordSync Small mod for Minecraft Forge 1.16.5 that sends messages of in-game events to a channel in your Discord server. This mod also enables cros

AeonLucid 4 Dec 20, 2022
Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Minecraft Utility Mod for the latest release of Minecraft developed by Cypphi.

Haze 18 Jan 1, 2023
Play snake, in minecraft. This is a crude, horibly made snake in minecraft game. Requires PaperMC 1.18.2.

MinecraftSnake Play snake, in minecraft. This is a crude, horibly made snake in minecraft game. Requires PaperMC 1.18.2. Installation: Create a paperm

null 1 Sep 30, 2022
A library that provide informations for minecraft servers (players, maxplayers and motd)

MinecraftServerInformations MinecraftServerInformation is a java library for retrieving informations about Minecraft Servers. Installation Download th

null 10 Sep 11, 2022