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

@@ -8,3 +8,9 @@
- changed bow maxDamage to 458 from 19 (found ot it wasnt attack damage)
- registered model predicate provider in client initializer
- figuring out new stuff is painful
## 1.18.1-1.1.0-stable
- renamed strong bow to Gamer Bow
- added textures for Gamer Bow
- added crafting recipe for Gamer Bow
- fully implemented Gamer Bow

View File

@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx6G
loader_version=0.12.12
# Mod Properties
mod_version = 1.18.1-1.0.2-unstable
mod_version = 1.18.1-1.1.0-stable
maven_group = ryantlg.GamerMod.mod
archives_base_name = GamerMod

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) {

View File

@@ -68,6 +68,7 @@
"item.gamermod.jeremium_sword.tooltip": "Kinda heavy",
"block.gamermod.deepslate_jeremium_ore": "Deepslate Jeremium Ore",
"block.gamermod.deepslate_omnium_ore": "Deepslate Omnium Ore",
"block.gamermod.deepslate_orium_ore": "Deepslate Orium Ore"
"block.gamermod.deepslate_orium_ore": "Deepslate Orium Ore",
"item.gamermod.gamer_bow": "Gamer Bow"
}

View File

@@ -0,0 +1,98 @@
{
"parent": "minecraft:item/generated",
"display": {
"thirdperson_righthand": {
"rotation": [
-80,
260,
-40
],
"translation": [
-1,
-2,
2.5
],
"scale": [
0.9,
0.9,
0.9
]
},
"thirdperson_lefthand": {
"rotation": [
-80,
280,
40
],
"translation": [
-1,
-2,
2.5
],
"scale": [
0.9,
0.9,
0.9
]
},
"firstperson_righthand": {
"rotation": [
0,
-90,
25
],
"translation": [
1.13,
3.2,
1.13
],
"scale": [
0.68,
0.68,
0.68
]
},
"firstperson_lefthand": {
"rotation": [
0,
90,
-25
],
"translation": [
1.13,
3.2,
1.13
],
"scale": [
0.68,
0.68,
0.68
]
}
},
"textures": {
"layer0": "gamermod:item/gamer_bow"
},
"overrides": [
{
"predicate": {
"minecraft:pulling": 1
},
"model": "gamermod:item/gamer_bow_pulling_0"
},
{
"predicate": {
"minecraft:pulling": 1,
"minecraft:pull": 0.65
},
"model": "gamermod:item/gamer_bow_pulling_1"
},
{
"predicate": {
"minecraft:pulling": 1,
"minecraft:pull": 0.9
},
"model": "gamermod:item/gamer_bow_pulling_2"
}
]
}

View File

@@ -0,0 +1,6 @@
{
"parent": "gamermod:item/gamer_bow",
"textures": {
"layer0": "gamermod:item/gamer_bow_pulling_0"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "gamermod:item/gamer_bow",
"textures": {
"layer0": "gamermod:item/gamer_bow_pulling_1"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "gamermod:item/gamer_bow",
"textures": {
"layer0": "gamermod:item/gamer_bow_pulling_2"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 723 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

View File

@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" #X",
"#SX",
" #X"
],
"key": {
"#": {
"item": "minecraft:stick"
},
"X": {
"item": "minecraft:string"
},
"S": {
"item": "minecraft:light_blue_dye"
}
},
"result": {
"item": "gamermod:gamer_bow"
}
}