Finalized bow item

This commit is contained in:
RyanTLG
2022-04-30 14:23:23 +02:00
parent e6d5c373f9
commit b0eaaeb61d
15 changed files with 156 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ import net.arcmods.ryantlg.items.armour.jeremiumArmour;
import net.arcmods.ryantlg.items.armour.notArmour;
import net.arcmods.ryantlg.items.armour.omniumArmour;
import net.arcmods.ryantlg.items.armour.oriumArmour;
import net.arcmods.ryantlg.items.bows.strongBow;
import net.arcmods.ryantlg.items.bows.gamerBow;
import net.arcmods.ryantlg.items.itemsByCrop.weemItems;
import net.arcmods.ryantlg.items.metalItems.jeremiumMetals;
import net.arcmods.ryantlg.items.metalItems.omniumMetals;
@@ -98,7 +98,7 @@ public class gamermod implements ModInitializer {
JeremiumOreGen.register();
notArmour.register();
strongBow.register();
gamerBow.register();
}
//fight me

View File

@@ -7,12 +7,12 @@ import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
public class strongBow {
public class gamerBow {
public static final Item STRONG_BOW = new BowItem(new FabricItemSettings().group(gamermod.CHING).maxCount(1).fireproof().maxDamage(458));
public static final Item GAMER_BOW = new BowItem(new FabricItemSettings().group(gamermod.CHING).maxCount(1).fireproof().maxDamage(458));
public static void register(){
Registry.register(Registry.ITEM, new Identifier("gamermod", "strong_bow"), STRONG_BOW);
Registry.register(Registry.ITEM, new Identifier("gamermod", "gamer_bow"), GAMER_BOW);
}

View File

@@ -1,6 +1,6 @@
package net.arcmods.ryantlg.utils;
import net.arcmods.ryantlg.items.bows.strongBow;
import net.arcmods.ryantlg.items.bows.gamerBow;
import net.fabricmc.fabric.api.object.builder.v1.client.model.FabricModelPredicateProviderRegistry;
import net.minecraft.item.Item;
import net.minecraft.util.Identifier;
@@ -8,7 +8,7 @@ import net.minecraft.util.Identifier;
public class bowModelPredicateProvider {
public static void registerBowModels() {
registerBow(strongBow.STRONG_BOW);
registerBow(gamerBow.GAMER_BOW);
}
private static void registerBow(Item bow) {