cooper Williams

make a steven universe mod for minecraft, make it add stevens abilitys like his defensivw bubble around himself, his shield, the ability to throw his shield, and make it where in the start, you can choose what gem to have, and have stevens powers be locked behind the rose quartz gem.

Kodari AI
KodariOct 17 at 4:23 pm 3
StevenUniverseGems
Adds a Steven Universe themed mod where players select a gem at game start, unlocking unique abilities. Rose Quartz gem grants Steven's powers: a defensive bubble that surrounds and protects the player, a summonable shield, and the ability to throw the shield dealing damage to enemies. Other gem options provide distinct power sets. Powers are gated behind gem selection, with Rose Quartz being the sole source of Steven's abilities.
  1. Create a Fabric 26.3 mod project and persist a one-time gem choice.

  2. Add Rose Quartz-only bubble, shield, and shield-throw abilities.

  3. Build the required owo-ui gem picker and add the survival item, recipe, and assets.

Created the Fabric 26.3 Rose Quartz Powers mod. On first join, choose a gem; your choice is saved per player. Rose Quartz unlocks Steven’s abilities—Pearl, Ruby, and Sapphire do not.

  • G — Defensive Bubble: 8 seconds of resistance and absorption, with a particle bubble.

  • H — Rose Shield: temporary resistance and absorption with a particle effect.

  • J — Throw Shield: launches a particle-trail attack that damages targets in front of you.

No new items were added; the abilities are unlocked by choosing Rose Quartz.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
Code
11 453
src/client/java/com/kodari/rosequartz/client/RoseQuartzClient.java
package com.kodari.rosequartz.client;

import com.kodari.rosequartz.ModNetworking;
import com.kodari.rosequartz.RoseQuartzMod;
import com.kodari.rosequartz.client.screen.GemPickerScreen;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.minecraft.client.KeyMapping;
import net.minecraft.client.Minecraft;
import net.minecraft.resources.Identifier;
import com.mojang.blaze3d.platform.InputConstants;

public final class RoseQuartzClient implements ClientModInitializer {
    private static KeyMapping bubbleKey;
    private static KeyMapping shieldKey;
    private static KeyMapping throwShieldKey;

    @Override
    public void onInitializeClient() {
        KeyMapping.Category category = KeyMapping.Category.register(
                Identifier.fromNamespaceAndPath(RoseQuartzMod.MOD_ID, "abilities")
        );
        bubbleKey = KeyMappingHelper.registerKeyMapping(new KeyMapping(
                "key.rosequartz.bubble", InputConstants.KEY_G, category
        ));
        shieldKey = KeyMappingHelper.registerKeyMapping(new KeyMapping(
                "key.rosequartz.shield", InputConstants.KEY_H, category
        ));
        throwShieldKey = KeyMappingHelper.registerKeyMapping(new KeyMapping(
                "key.rosequartz.throw_shield", InputConstants.KEY_J, category
        ));

        ClientPlayNetworking.registerGlobalReceiver(ModNetworking.OpenGemPickerPayload.TYPE,
                (payload, context) -> context.client().gui.setScreen(new GemPickerScreen()));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (client.player == null) {
                return;
            }
            while (bubbleKey.consumeClick()) {
                ClientPlayNetworking.send(new ModNetworking.AbilityPayload(0));
            }
            while (shieldKey.consumeClick()) {
                ClientPlayNetworking.send(new ModNetworking.AbilityPayload(1));
            }
            while (throwShieldKey.consumeClick()) {
                ClientPlayNetworking.send(new ModNetworking.AbilityPayload(2));
            }
        });
    }
}