Finalized bow item
This commit is contained in:
@@ -7,4 +7,10 @@
|
|||||||
- added model predicate provider
|
- added model predicate provider
|
||||||
- changed bow maxDamage to 458 from 19 (found ot it wasnt attack damage)
|
- changed bow maxDamage to 458 from 19 (found ot it wasnt attack damage)
|
||||||
- registered model predicate provider in client initializer
|
- registered model predicate provider in client initializer
|
||||||
- figuring out new stuff is painful
|
- 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
|
||||||
@@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx6G
|
|||||||
loader_version=0.12.12
|
loader_version=0.12.12
|
||||||
|
|
||||||
# Mod Properties
|
# 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
|
maven_group = ryantlg.GamerMod.mod
|
||||||
archives_base_name = GamerMod
|
archives_base_name = GamerMod
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import net.arcmods.ryantlg.items.armour.jeremiumArmour;
|
|||||||
import net.arcmods.ryantlg.items.armour.notArmour;
|
import net.arcmods.ryantlg.items.armour.notArmour;
|
||||||
import net.arcmods.ryantlg.items.armour.omniumArmour;
|
import net.arcmods.ryantlg.items.armour.omniumArmour;
|
||||||
import net.arcmods.ryantlg.items.armour.oriumArmour;
|
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.itemsByCrop.weemItems;
|
||||||
import net.arcmods.ryantlg.items.metalItems.jeremiumMetals;
|
import net.arcmods.ryantlg.items.metalItems.jeremiumMetals;
|
||||||
import net.arcmods.ryantlg.items.metalItems.omniumMetals;
|
import net.arcmods.ryantlg.items.metalItems.omniumMetals;
|
||||||
@@ -98,7 +98,7 @@ public class gamermod implements ModInitializer {
|
|||||||
JeremiumOreGen.register();
|
JeremiumOreGen.register();
|
||||||
|
|
||||||
notArmour.register();
|
notArmour.register();
|
||||||
strongBow.register();
|
gamerBow.register();
|
||||||
|
|
||||||
}
|
}
|
||||||
//fight me
|
//fight me
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ import net.minecraft.item.Item;
|
|||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.registry.Registry;
|
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(){
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package net.arcmods.ryantlg.utils;
|
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.fabricmc.fabric.api.object.builder.v1.client.model.FabricModelPredicateProviderRegistry;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
@@ -8,7 +8,7 @@ import net.minecraft.util.Identifier;
|
|||||||
public class bowModelPredicateProvider {
|
public class bowModelPredicateProvider {
|
||||||
|
|
||||||
public static void registerBowModels() {
|
public static void registerBowModels() {
|
||||||
registerBow(strongBow.STRONG_BOW);
|
registerBow(gamerBow.GAMER_BOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void registerBow(Item bow) {
|
private static void registerBow(Item bow) {
|
||||||
|
|||||||
@@ -68,6 +68,7 @@
|
|||||||
"item.gamermod.jeremium_sword.tooltip": "Kinda heavy",
|
"item.gamermod.jeremium_sword.tooltip": "Kinda heavy",
|
||||||
"block.gamermod.deepslate_jeremium_ore": "Deepslate Jeremium Ore",
|
"block.gamermod.deepslate_jeremium_ore": "Deepslate Jeremium Ore",
|
||||||
"block.gamermod.deepslate_omnium_ore": "Deepslate Omnium 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"
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "gamermod:item/gamer_bow",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "gamermod:item/gamer_bow_pulling_0"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "gamermod:item/gamer_bow",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "gamermod:item/gamer_bow_pulling_1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"parent": "gamermod:item/gamer_bow",
|
||||||
|
"textures": {
|
||||||
|
"layer0": "gamermod:item/gamer_bow_pulling_2"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
src/main/resources/assets/gamermod/textures/item/gamer_bow.png
Normal file
BIN
src/main/resources/assets/gamermod/textures/item/gamer_bow.png
Normal file
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 |
23
src/main/resources/data/gamermod/recipes/gamer_bow.json
Normal file
23
src/main/resources/data/gamermod/recipes/gamer_bow.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user