29 lines
987 B
Java
29 lines
987 B
Java
package dev.agatharose.asbestos.config;
|
|
|
|
import me.shedaniel.autoconfig.ConfigData;
|
|
import me.shedaniel.autoconfig.annotation.Config;
|
|
import me.shedaniel.autoconfig.annotation.*;
|
|
|
|
@Config(name = "asbestos")
|
|
@Config.Gui.Background("asbestos:textures/block/serpentinite_block.png")
|
|
public class AsbestosConfig implements ConfigData {
|
|
@ConfigEntry.Gui.CollapsibleObject
|
|
public Mesothelioma mesothelioma = new Mesothelioma();
|
|
|
|
// options related to the mesothelioma status effect
|
|
public static class Mesothelioma {
|
|
// how many blocks around the player will be checked
|
|
@ConfigEntry.BoundedDiscrete(min = 0, max = 32)
|
|
@ConfigEntry.Gui.Tooltip
|
|
public int offset = 3;
|
|
|
|
// how many seconds will pass between each check
|
|
@ConfigEntry.Gui.Tooltip(count = 2)
|
|
public int period = 5;
|
|
|
|
// how many mesothelioma points must the player have to die
|
|
@ConfigEntry.Gui.Tooltip
|
|
public int threshold = 180;
|
|
}
|
|
}
|