saytro__

This adds a new type of armor and weapom, obscurium, wich need an obscurium template, a netherite piece, and an obscurium core, to craft de obscurium core you need a heart of warden in the center, a netherite ingot a diamond a sculk shard and an amethyst shard on the sides bottom and top of the heart. this armor has a higher armor stat, helmet grants night vision, chestpiece grants strength 2 and allso a 2nd life bar, pants grants haste 2, boots grants speed 2 and jump boost2, swords does pore damage then netherite, has lifesteal aand poisons on hit, pickaxe one hits stone and mines 3x3 and entire ore veins, axe one hits tree, shovel mines 3x3 and hoe turn dirt into fertilized dirt 3 by 3 which dosnt need water ore light to grow plants, grows them faster, give armor and tools a custom texture ancient looking, also add some visual effect when the full armor is on, having full armor grants wings which can be activated to fly with a keybind

Kodari AI
KodariJun 24 at 2:49 pm 94
ObscuriumMod
Adds Obscurium, a powerful ancient-themed material surpassing Netherite. Craft an Obscurium Core using a Heart of the Warden, Netherite Ingot, Diamond, Sculk Shard, and Amethyst Shard, then combine with Netherite gear and an Obscurium Template. Armor grants unique effects per piece and full-set wings for flight. Tools feature 3x3 mining, vein mining, one-hit wood/stone, and a hoe that creates Fertilized Dirt. Custom ancient textures and visual aura effects included.
ObscuriumMod
Adds Obscurium, a devastating ancient-tier material beyond Netherite. Craft an Obscurium Core from a Heart of the Warden, Netherite Ingot, Diamond, Echo Shard & Amethyst Shard, then upgrade Netherite gear via smithing. Each armor piece grants unique effects; full set activates a visual aura and toggleable wings. Tools include one-hit stone pickaxe with 3×3 and vein mining, a tree-felling axe, 3×3 shovel, and hoe that creates water-free Fertilized Dirt 3×3.

I’ll build this in one shot. Planning the full dependency graph first:

  • ObscuriumMaterial → no deps (armor + tool material constants)

  • Item/Block classes → depend on ObscuriumMaterial

  • ModItems / ModBlocks → depend on item/block classes

  • ObscuriumEvents → depends on ModItems, ModBlocks

  • WingsTogglePayload → networking only

  • ObscuriumMod → roots everything

  • Client classes → depend on WingsTogglePayload + ModItems

  • CropBlockMixin → depends on ModBlocks

Now the resource files:

Now the data files — recipes, tags, loot tables:


Here’s a summary of what was built and what you need to add:

Textures needed (create these PNG files at src/main/resources/assets/obscurium/textures/):

  • item/ — heart_of_the_warden.png, obscurium_smithing_template.png, obscurium_core.png, all armor inventory icons, all tool icons

  • models/armor/obscurium.png (layer 1 — helmet/chest/boots worn texture)

  • models/armor/obscurium_leggings.png (layer 2 — leggings worn texture)

  • block/fertilized_dirt_top.png, block/fertilized_dirt_side.png

How everything works:

Feature
Mechanism
Armor effects
Server tick every 30 ticks reapplies status effects;
EQUIPMENT_CHANGE
adds/removes +10 hearts from chestplate
Wings
Press
V
→ sends C2S packet → server toggles
allowFlight
if full set worn
Full-armor aura
Server spawns purple dust particles every 5 ticks; HUD shows
✦ Obscurium ✦
Sword: lifesteal + poison
ServerLivingEntityEvents.AFTER_DAMAGE
hooks, checks weapon in main hand
Pickaxe: instant stone
getMiningSpeedMultiplier
returns
1000f
for stone/ore blocks
Pickaxe: 3×3 + vein mine
PlayerBlockBreakEvents.AFTER
— ores trigger flood-fill (max 64), others trigger 3×3 plane
Axe: fell tree
Same event — flood-fills all connected
#logs
blocks (max 256) + surrounding leaves
Shovel: 3×3
Same event — 3×3 filtered by
#shovel_mineable
Hoe: fertilized dirt 3×3
useOnBlock
override converts 3×3 dirt/grass area
Fertilized dirt
Extends
FarmlandBlock
, always moisture 7, can’t be trampled, grants extra random growth tick
Crops on fertilized dirt
CropBlockMixin
bypasses light check and
canPlantOn
restriction
Heart of the Warden
Drops from Warden via
LootTableEvents.MODIFY
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
72 1,433
src/main/java/com/example/obscurium/ObscuriumMod.java
package com.example.obscurium;

import com.example.obscurium.network.WingsTogglePayload;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ObscuriumMod implements ModInitializer {

    public static final String MOD_ID = "obscurium";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
        ModBlocks.initialize();
        ModItems.initialize();
        PayloadTypeRegistry.playC2S().register(WingsTogglePayload.ID, WingsTogglePayload.CODEC);
        ObscuriumEvents.initialize();
    }
}