Java mod library

Overview

AdvancedContentInfo

AdvancedContentInfo is a Mindustry java mod library for making out stats and stats categories.

banner1

Usage/Examples

You can initialize your stats and your categories in the setStats method of Block: YourBlock.java

package com.examplemod.blocks;

import acontent.world.meta.AStat;
import acontent.world.meta.AStats;
import mindustry.world.Block;

public class YourBlock extends Block {
    public AStats aStats=new AStats();
    public YourBlock(String name) {
        super(name);
        stats=aStats.copy(stats);
    }

    @Override
    public void setStats() {
        super.setStats();
        aStats.add(AStat.get("your_stat","your_category"),/*your statValue*/);
        aStats.add(AStat.get("your_stat1", AStatCat.get("your_category2")),/*your statValue*/);
        aStats.add(AStat.get("your_stat2", StatCat.function),/*your statValue*/);
        aStats.add(Stat.health,/*your statValue*/);
    }
}

Or make a separate class for this:

YourStats.java

package com.examplemod.blocks;

import acontent.world.meta.AStat;
import acontent.world.meta.AStatCat;
import mindustry.world.meta.StatCat;

public class YourStats {
    public static final AStatCat yourCategory2=AStatCat.get("your_category2");
    public static final AStat yourStat=AStat.get("your_stat","your_category");
    public static final AStat yourStat2=AStat.get("your_stat1", AStatCat.get("your_category2"));
    public static final AStat yourStat3=AStat.get("your_stat2", StatCat.function);
}

YourBlock.java

package com.examplemod.blocks;

import acontent.world.meta.AStats;
import mindustry.world.Block;

public class YourBlock extends Block {
    public AStats aStats=new AStats();
    public YourBlock(String name) {
        super(name);
        stats=aStats.copy(stats);
    }

    @Override
    public void setStats() {
        super.setStats();
        aStats.add(YourStats.yourStat,/*your statValue*/);
        aStats.add(YourStats.yourStat2,/*your statValue*/);
        aStats.add(YourStats.yourStat3,/*your statValue*/);
        aStats.add(Stat.health,/*your statValue*/);
    }
}

You can use index at the end of each .get method to change the position in the stat list or stat category. Stat category without index:

public class GasStats {
    public static AStat gasCapacity = AStat.get("gasCapacity", AStatCat.get("gasses"));
}

image

Stat category with index:

public class GasStats {
    public static AStat gasCapacity = AStat.get("gasCapacity", AStatCat.get("gasses", StatCat.liquids.ordinal()+1));
}

image

Stat without index:

public class BDStat {
    public static final AStat rotorsCount=AStat.get("rotorsCount", StatCat.general);
}

image

Stat with index:

public class BDStat {
    public static final AStat rotorsCount=AStat.get("rotorsCount", StatCat.general, Stat.size.ordinal()+1);
}

image

Mindustry Mod By Zelaux

Resources

Authors

  • Zelaux(main-programmer)

Installation Guide

1.Via .jar File

  • 1.Go to releases.

  • 2.Download the latest .jar file.

  • 3.Launch Mindustry.

  • 4.Open "Mods".

  • 5."Import Mod".

  • 6."Impot File"

  • 7.Find file with name "AdvancedContentInfo.jar" and click "load".

  • 8.Play!

2.Via Mod Browser

  • 1.Go to in-game Mod Browser.

  • 2.Find "AdvancedContentInfo" in mod list.

  • 3.Download.

Build Guide

PC

  • 1.Download intelijIDEA.

  • 2.Clone this repository.

  • 3.When importing is end, go to Intelij console and type:

Windows MacOSX Linux
gradlew jar ./gradlew jar ./gradlew jar
  • 4.When compilation is end, your build will be in "build/libs" Download

Depend via Maven:

<dependency>
	    <groupId>com.github.Zelaux</groupId>
	    <artifactId>AdvancedContentInfo</artifactId>
	    <version>v1.2</version>
</dependency>

or Gradle:

dependencies {
        implementation 'com.github.Zelaux:AdvancedContentInfo:v1.2'
}

And don't forget to add the dependency to your mod.(h)json

dependencies: ["advanced-content-info"]
You might also like...

A Minecraft Java mod that adds 48 pieces of functional, decorative and unique furniture that fit with the vanilla style.

A Minecraft Java mod that adds 48 pieces of functional, decorative and unique furniture that fit with the vanilla style.

FurniDeco ( 🚧 WIP) FurniDeco adds 25 pieces of functional, decorative and unique-looking furniture that fit with the vanilla style. With more than 80

Jul 3, 2022

Sequel to Heavy Armaments Industries, a mod for mindustry written in Java

Sequel to Heavy Armaments Industries, a mod for mindustry written in Java

Sequel to Heavy Armaments Industries, a mod for mindustry written in Java

Dec 30, 2022

A Java mod meant to add new things to the current Erekir's progression

Erekir Expansion A Java mod meant to add new things to the current Erekir's progression. Fun Fact: I used my private JS mod version, Flar Expansion v1

Dec 18, 2022

The Minecraft Mod API

Bukkit A Minecraft Server API. Website: http://bukkit.org Bugs/Suggestions: http://leaky.bukkit.org Contributing Guidelines: CONTRIBUTING.md Compilati

Dec 31, 2022

A Forge mod that implements SpongeAPI

SpongeForge Currently not stable and under heavy development! A Forge implementation of the Sponge API. Homepage Source Issues Documentation Community

Dec 20, 2022

πŸ—ΊοΈ Minecraft map editor and mod

A Minecraft Map Editor... that runs in-game! With selections, schematics, copy and paste, brushes, and scripting! Use it in creative, survival in sing

Jan 1, 2023

Essentials - Minecraft server command mod - Adds over 100 commands for use in-game to help manage a server

Essentials Development Readme The official repository is at: https://github.com/essentials/Essentials We use NetBeans 7.3 for development. Recommended

Jan 7, 2023

A minecraft mod that allows additional windows to be opened alongside the game

Breakout API BreakoutAPI is a Minecraft mod which allows developers to create new windows that run alongside Minecraft. All the windows run on the sam

Jan 3, 2023

A Minecraft Mod for Fabric which aims to make Block Entity rendering faster and more customizable with almost no compromises.

A Minecraft Mod for Fabric which aims to make Block Entity rendering faster and more customizable with almost no compromises.

Enhanced Block Entities EBE is a 100% client side mod for Minecraft on the Fabric mod loader which aims to increase the performance of block entity re

Dec 30, 2022
Comments
  • Removing stats causes crashing.

    Removing stats causes crashing.

    Describe the bug Removing stats causes crashing.

    To Reproduce Steps to reproduce the behavior:

    1. Replace stats with astats
    2. Attempt to remove Stat.powerUse on a block that normally does have Stat.powerUse (In my case, my PayloadCrafters)
    3. Open the stats
    4. Game crash

    Expected behavior Just remove "Power Use: " I don't want it in my stats.

    Screenshots Code without remove commented out. code error I just want you gone. (If I do comment out remove) pesky power

    Desktop (please complete the following information):

    • OS: Windows 10
    • Version v130.0

    Additional context Take this experimental version of Progressed Materials, use it, and open the stats of "Missile Shell Constructer," "Missile Assembler," or "Sentry Factory" to crash the game. ProgMatsDesktop.zip

    opened by MEEPofFaith 0
Releases(v1.5)
Owner
null
Nuclear-Mines-Mod - A mod adding radiation-related items to Mindustry (radioactive materials, new guns, etc.)

Nuclear Mines (VERY EARLY BUILD) A Mindustry mod adding more radiation-based items to the game. THIS IS A VERY EARLY VERSION. NOT EVERYTHING IS FINISH

null 6 Sep 3, 2022
Addon to the Minecraft Forge/Fabric mod InvMove that adds mod compatibilities

Addon to the Minecraft Forge/Fabric mod InvMove that adds mod compatibilities

David M. 3 Oct 21, 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
Java mod library

GasLirary GasLirary is a Mindustry java mod library for making new content type: Gas. Usage/Examples Gas creating Gas is created in the same way as It

null 10 Jan 2, 2023
Java mod library

AdvancedContentInfo AdvancedContentInfo is a Mindustry java mod library for making out stats and stats categories. Usage/Examples You can initialize y

null 8 May 28, 2022
TerraBlender is a library mod for adding biomes in a simple and compatible manner with Minecraft's new biome/terrain system.

https://discord.gg/GyyzU6T TerraBlender is a library mod for adding biomes in a simple and compatible manner with Minecraft's new biome/terrain system

Glitchfiend 31 Dec 12, 2022
A library for mod dependencies.

MagicLib δΈ­ζ–‡ Warning: The project is still in the early development stage. A library for mod dependencies. Development Mappings We are using the Mojang

にゃんけゃん 22 Jan 7, 2023
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