alı

benim için minecraft 1.20.1 forge versiyonuna ruby sword kırmızı zümrüt ruby ile yapılan 1.0 hız 12 hasar vuran 2031 canı olan ve demir kazma ve 16 ila -59 a kadar 16 ila 0 da daha yaygın olan bir cevher ve kılıç modu yap kazma balta çaap kürek yap netheriteden 5x hızlı olsun dırability 2031 hız ve saldırı hasarı netherite eşyalar ile aynı olsun jar dosyasını direkt MODS klasörüne atabileceğim şekilde ver

Kodari AI
KodariSep 9 at 12:41 pm 2
RubySwordMod
Adds a Ruby ore block that spawns commonly between Y 0 and Y 16, and rarely down to Y -59. Mining it yields Ruby gems used to craft a Ruby Sword with 12 attack damage, 1.0 attack speed, and 2031 durability. Also includes Ruby Pickaxe, Axe, Shovel, and Hoe with 2031 durability, 5x faster mining speed than Netherite tools, and matching Netherite attack damage and speed. All items are forge-compatible for Minecraft 1.20.1.

Minecraft 1.20.1 Forge Ruby modu kaynak kodu olarak oluşturuldu.

Özellikler:

  • Ruby cevheri:

    • Y: 16 ile 0 arasında daha yaygın

    • Y: 0 ile -59 arasında daha az yaygın

    • Demir kazma veya daha üstü gerekir

  • Ruby:

    • Ruby cevherinden çıkarılır

    • Fırın ve yüksek fırın tarifleri eklendi

  • Ruby Sword:

    • Saldırı hızı: 1.0

    • Hasar: 12

    • Dayanıklılık: 2031

  • Ruby kazma, balta, kürek ve çapa:

    • Dayanıklılık: 2031

    • Netherite araçlardan 5x daha hızlı

    • Netherite seviyesinde araç gereksinimi

  • Tarifler, loot table, model ve cevher oluşumu eklendi.

Bu ortamda doğrudan derlenmiş .jar dosyası oluşturup yükleyemiyorum. Projeyi IntelliJ IDEA veya terminalde açıp şu komutla derleyebilirsin:

Shell
./gradlew build

Windows için:

Shell
gradlew.bat build

Oluşan dosya:

Plain Text
build/libs/ruby-mod-1.0.0.jar

Bu .jar dosyasını Minecraft 1.20.1 Forge kurulumundaki:

Plain Text
.minecraft/mods

klasörüne atabilirsin.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
34 619
src/main/java/com/kodari/rubymod/RubyMod.java
package com.kodari.rubymod;

import net.minecraft.world.item.CreativeModeTabs;
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod(RubyMod.MOD_ID)
public class RubyMod {
    public static final String MOD_ID = "rubymod";

    public RubyMod() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        RubyBlocks.BLOCKS.register(modEventBus);
        RubyItems.ITEMS.register(modEventBus);
        modEventBus.addListener(this::addCreative);
    }

    private void addCreative(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey() == CreativeModeTabs.INGREDIENTS) {
            event.accept(RubyItems.RUBY);
        }
        if (event.getTabKey() == CreativeModeTabs.NATURAL_BLOCKS) {
            event.accept(RubyItems.RUBY_ORE);
        }
        if (event.getTabKey() == CreativeModeTabs.COMBAT) {
            event.accept(RubyItems.RUBY_SWORD);
        }
        if (event.getTabKey() == CreativeModeTabs.TOOLS_AND_UTILITIES) {
            event.accept(RubyItems.RUBY_PICKAXE);
            event.accept(RubyItems.RUBY_AXE);
            event.accept(RubyItems.RUBY_SHOVEL);
            event.accept(RubyItems.RUBY_HOE);
        }
    }
}