/*
 * Copyright (c) 2026 盐灯水母
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

package com.remains_cave.attribute;

import com.remains_cave.RemainsCaveMod;
import net.minecraft.core.registries.Registries;
import net.minecraft.world.entity.ai.attributes.Attribute;
import net.minecraft.world.entity.ai.attributes.RangedAttribute;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;

public class ModAttributes {
    public static final DeferredRegister<Attribute> ATTRIBUTES =
            DeferredRegister.create(Registries.ATTRIBUTE, RemainsCaveMod.MODID);

    public static final DeferredHolder<Attribute, Attribute> SMITE_RESISTANCE = ATTRIBUTES.register("smite_resistance",
            () -> new RangedAttribute("attribute.remains_cave.smite_resistance", 0.0, 0.0, 1.0).setSyncable(true));
}