Jesús Rafael Moya López

create a mod that you cam make black dye with charcoal and coal but you only to put 1 in the crafting table and you get 2 black dye and that if you kill a mob with a armor tha it drop you with a durability of midle or so worn out

Kodari AI
KodariNov 2 at 12:55 am 1
CoalDyeAndArmorDrop
Adds two crafting and combat mechanics to Minecraft. First, allows crafting two black dye from a single charcoal or coal item in any crafting grid, providing an alternative dye source. Second, introduces a new armor drop system where killing any mob while wearing armor causes that armor piece to drop with a durability reduced to approximately half its maximum, representing worn-out gear. The mod integrates seamlessly with vanilla recipes and loot tables, ensuring compatibility with existing gameplay while offering new resource and equipment acquisition methods.
  1. Add shapeless charcoal/coal recipes that produce two black dye per single ingredient.

  2. Make armor dropped by mobs spawn moderately worn.

  1. Black dye: One coal or one charcoal crafts into two black dye.

  2. Mob armor drops: Any armor dropped by a mob is set to half durability remaining.

Added the NeoForge 1.21.1 project setup and mod entry point.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 106
src/main/java/com/kodari/charcoaldye/CharcoalDye.java
package com.kodari.charcoaldye;

import net.neoforged.fml.common.Mod;

@Mod(CharcoalDye.MOD_ID)
public class CharcoalDye {
    public static final String MOD_ID = "charcoal_dye";
}