Tobias Thagaard Madsen

Make a new type of armor called Mark 1 make the boots have the ability to fly but it has a fuel meter with a max of 100% and every second you fly it goes down with 5% you can refill it with gunpowder every 1 gunpodwer fills it with 25% fuel the leggings ar the same as iron and helmet too the chestplate lets you shoot fire out of one hand and rockets out of the other the fire uses the fuel meter too it goes down with 2% every second the abilities only work with the intire set of armor

Kodari AI
KodariNov 1 at 6:08 pm 3
MarkOneFlightArmor
Adds a craftable Mark 1 armor set. Wearing the full set grants flight via boots, consuming 5% fuel per second from a 100% fuel meter. Fire blast from chestplate consumes 2% fuel per second. Gunpowder refills 25% fuel per use. Chestplate also fires rockets from the off-hand. Leggings and helmet match iron armor stats. Abilities only activate when the complete set is worn.
  1. Add the craftable Mark 1 armor set and require all four pieces for its abilities.

  2. Add a shared fuel meter, gunpowder refueling, and powered flight.

  3. Add separate controls for the chestplate’s fire and rockets.I couldn’t complete the Mark 1 mod: the available source lookups didn’t establish enough of the 26.3 keybinding and armor asset APIs to implement it reliably. No project files were created.

Tobias Thagaard Madsen

Make a new type of armor called Mark 1 make the boots have the ability to fly but it has a fuel meter with a max of 100% and every second you fly it goes down with 5% you can refill it with gunpowder every 1 gunpodwer fills it with 25% fuel the leggings ar the same as iron and helmet too the chestplate lets you shoot fire out of one hand and rockets out of the other the fire uses the fuel meter too it goes down with 2% every second the abilities only work with the intire set of armor to fly you need to click space two times adn to stop you new to click shift to shot fire you hold z to shot missiles you clikc x missils shal have a 1.2 cooldown every time you use it

Kodari AI
KodariNov 1 at 6:15 pm 4
  1. Create the Mark 1 armor and survival recipes.

  2. Add full-set flight, fuel consumption, and gunpowder refueling.

  3. Add held-fire and missile controls with the requested cooldown.I couldn’t build Mark 1 reliably: the available 26.3 source lookup did not verify the armor registration and equipment asset formats. No project files were created.

Tobias Thagaard Madsen

Make a new type of armor called Mark 1 make the boots have the ability to fly but it has a fuel meter with a max of 100% and every second you fly it goes down with 5% you can refill it with gunpowder every 1 gunpodwer fills it with 25% fuel the leggings ar the same as iron and helmet too the chestplate lets you shoot fire out of one hand and rockets out of the other the fire uses the fuel meter too it goes down with 2% every second the abilities only work with the intire set of armor to fly you need to click space two times adn to stop you new to click shift to shot fire you hold z to shot missiles you clikc x missils shal have a 1.2 cooldown every time you use it it is the same as iron armor

Kodari AI
KodariNov 1 at 6:26 pm 20
  1. Add the iron-equivalent Mark 1 armor and survival recipes.

  2. Add full-set flight, a fuel meter, and gunpowder refueling.

  3. Add Z-held fire and X-fired missiles with a 1.2-second cooldown.

The item textures are ready. I’m wiring the armor first; the flight and weapon controls still need implementation.

Added the Mark 1 set with iron armor stats and full-set abilities.

  • Obtain it: Craft each piece from its iron armor counterpart plus redstone.

  • Fly: Double-tap Space; press Shift to stop.

  • Fire: Hold Z. Missile: Press X; cooldown is 1.2 seconds.

  • Refuel: Press R to consume one gunpowder for 25% fuel.

Missiles currently use explosive fireballs. The project hasn’t been compiled or tested in-game yet.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
Iron man
settings.gradle
Code
29 319
src/main/java/com/kodari/mark1/Mark1.java
package com.kodari.mark1;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.equipment.ArmorMaterial;
import net.minecraft.world.item.equipment.ArmorMaterials;
import net.minecraft.world.item.equipment.ArmorType;
import net.minecraft.world.item.equipment.EquipmentAssets;

public class Mark1 implements ModInitializer {
    private static final ArmorMaterial IRON = ArmorMaterials.IRON;
    private static final ArmorMaterial MATERIAL = new ArmorMaterial(
        IRON.durability(), IRON.defense(), IRON.enchantmentValue(), IRON.equipSound(),
        IRON.toughness(), IRON.knockbackResistance(), IRON.repairIngredient(),
        ResourceKey.create(EquipmentAssets.ROOT_ID, Identifier.fromNamespaceAndPath("mark1", "mark1"))
    );

    public static final Item HELMET = register("mark1_helmet", ArmorType.HELMET);
    public static final Item CHESTPLATE = register("mark1_chestplate", ArmorType.CHESTPLATE);
    public static final Item LEGGINGS = register("mark1_leggings", ArmorType.LEGGINGS);
    public static final Item BOOTS = register("mark1_boots", ArmorType.BOOTS);

    private static Item register(String name, ArmorType type) {
        ResourceKey<Item> key = ResourceKey.create(Registries.ITEM, Identifier.fromNamespaceAndPath("mark1", name));
        return Registry.register(BuiltInRegistries.ITEM, key, new Item(new Item.Properties().setId(key).humanoidArmor(MATERIAL, type)));
    }

    @Override
    public void onInitialize() {
        Mark1Abilities.initialize();
        ResourceKey<CreativeModeTab> combat = ResourceKey.create(Registries.CREATIVE_MODE_TAB, Identifier.fromNamespaceAndPath("minecraft", "combat"));
        CreativeModeTabEvents.modifyOutputEvent(combat).register(output -> {
            output.accept(HELMET);
            output.accept(CHESTPLATE);
            output.accept(LEGGINGS);
            output.accept(BOOTS);
        });
    }
}