mikołaj wiencaszek

daj mi bombamoda

Kodari AI
KodariNov 12 at 11:58 am 5
BombaModa
BombaModa is a Minecraft Fabric mod that adds explosive fashion items to the game. Players can craft and wear bomb-themed armor pieces, including a TNT helmet, gunpowder chestplate, firework leggings, and rocket boots. Each armor piece provides unique explosive abilities: the helmet grants fire resistance, the chestplate creates a damaging explosion when hit, the leggings launch the wearer into the air, and the boots enable rocket-jumping. The mod includes custom crafting recipes, particle effects, sound effects, and a configurable damage system. All items are fully compatible with vanilla Minecraft mechanics and can be enchanted.
  1. Add a craftable bomb item that detonates at the block you’re aiming at.

  2. Register it, add its crafting recipe, creative-tab entry, name, and item assets.

  3. Use a custom bomb texture and verify each Minecraft/Fabric API signature before writing code.

Napravio sam Fabric 26.3 Bomb Mod. Bombu možeš napraviti u survivalu: TNT u środku, 3 żelazne ingoty po bokach i u górze oraz redstone pod spodem. Kliknięcie prawym przyciskiem detonuje ją przy wskazanym bloku w zasięgu 32 bloków i zużywa bombę.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
11 182
src/main/java/com/kodari/bombmod/BombMod.java
package com.kodari.bombmod;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.minecraft.core.RegistrationInfo;
import net.minecraft.core.WritableRegistry;
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;

public final class BombMod implements ModInitializer {
	public static final String MOD_ID = "bombmod";
	private static final ResourceKey<Item> BOMB_KEY = ResourceKey.create(
		Registries.ITEM,
		Identifier.fromNamespaceAndPath(MOD_ID, "bomb")
	);
	public static final Item BOMB;

	static {
		Item bomb = new BombItem(new Item.Properties().setId(BOMB_KEY));
		((WritableRegistry<Item>) BuiltInRegistries.ITEM).register(BOMB_KEY, bomb, RegistrationInfo.BUILT_IN);
		BOMB = bomb;
	}

	@Override
	public void onInitialize() {
		ResourceKey<CreativeModeTab> combatTab = ResourceKey.create(
			Registries.CREATIVE_MODE_TAB,
			Identifier.fromNamespaceAndPath("minecraft", "combat")
		);
		CreativeModeTabEvents.modifyOutputEvent(combatTab).register(output -> output.accept(BOMB));
	}
}