Skip to content

Commit 43ccd35

Browse files
updated the version
1 parent 5313ad6 commit 43ccd35

File tree

5 files changed

+66
-8
lines changed

5 files changed

+66
-8
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ project.plugins.withType(MavenPublishPlugin).all {
133133
}
134134
}
135135

136-
exec {
137-
commandLine "echo", "##[set-output name=version;]${project.version}";
138-
}
136+
// exec {
137+
// commandLine "echo", "##[set-output name=version;]${project.version}";
138+
// }

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ loader_version=0.14.21
1212
#Fabric api
1313
fabric_version=0.82.0+1.19.4
1414
# Mod Properties
15-
mod_version=1.19.4-1.3.0
15+
mod_version=1.19.4-1.3.2
1616
maven_group=io.github.codecraftplugin
1717
archives_base_name=registry-lib
1818

src/main/java/io/github/codecraftplugin/registrylib/RegisteryLib.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,5 @@ public class RegisteryLib implements ModInitializer {
1313
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
1414
@Override
1515
public void onInitialize() {
16-
Item itemgroupicon = Registry.registerItems("itemgroupicon",MOD_ID,new Item(new FabricItemSettings()), ItemGroups.TOOLS);
17-
ItemGroup testitemgroup = Registry.registerItemGroup("testitemgroup",MOD_ID,()->new ItemStack(itemgroupicon));
18-
Item registeritem = Registry.registerItems("registeritem",MOD_ID,new Item(new FabricItemSettings()), testitemgroup);
1916
}
2017
}

src/main/java/io/github/codecraftplugin/registrylib/utils/RegistryRecipeProvider.java

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,65 @@ public static void offerSwordRecipe(Consumer<RecipeJsonProvider> exporter, ItemC
8888
FabricRecipeProvider.conditionsFromItem(input))
8989
.group("sword").offerTo(exporter);
9090
}
91+
92+
/**
93+
* for making a Chestplate recipe
94+
* @param exporter the expoter
95+
* @param output the output that is the Chestplate
96+
* @param input the material the Chestplate is made up of (wood, stone, iron, gold, diamond, any modded material)
97+
*/
98+
public static void offerChestplateRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
99+
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
100+
.pattern("# #")
101+
.pattern("###")
102+
.pattern("###")
103+
.criterion(FabricRecipeProvider.hasItem(input),
104+
FabricRecipeProvider.conditionsFromItem(input))
105+
.group("chestplate").offerTo(exporter);
106+
}
107+
/**
108+
* for making a Boots recipe
109+
* @param exporter the exporter
110+
* @param output the output that is the Boots
111+
* @param input the material the Boots is made up of (wood, stone, iron, gold, diamond, any modded material)
112+
*/
113+
public static void offerBootsRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
114+
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
115+
.pattern(" ")
116+
.pattern("# #")
117+
.pattern("# #")
118+
.criterion(FabricRecipeProvider.hasItem(input),
119+
FabricRecipeProvider.conditionsFromItem(input))
120+
.group("boots").offerTo(exporter);
121+
}
122+
/**
123+
* for making a Leggings recipe
124+
* @param exporter the exporter
125+
* @param output the output that is the Leggings
126+
* @param input the material the Leggings is made up of (wood, stone, iron, gold, diamond, any modded material)
127+
*/
128+
public static void offerLeggingsRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
129+
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
130+
.pattern("###")
131+
.pattern("# #")
132+
.pattern("# #")
133+
.criterion(FabricRecipeProvider.hasItem(input),
134+
FabricRecipeProvider.conditionsFromItem(input))
135+
.group("leggings").offerTo(exporter);
136+
}
137+
/**
138+
* for making a Helmet recipe
139+
* @param exporter the exporter
140+
* @param output the output that is the Helmet
141+
* @param input the material the Helmet is made up of (wood, stone, iron, gold, diamond, any modded material)
142+
*/
143+
public static void offerHelmetRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
144+
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
145+
.pattern("###")
146+
.pattern("# #")
147+
.pattern(" ")
148+
.criterion(FabricRecipeProvider.hasItem(input),
149+
FabricRecipeProvider.conditionsFromItem(input))
150+
.group("helmet").offerTo(exporter);
151+
}
91152
}

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"schemaVersion": 1,
33
"id": "registrylib",
44
"version": "${version}",
5-
"name": "RegisteryLib",
5+
"name": "Registery Lib",
66
"description": "it is a registery libary for my ease of work",
77
"authors": [
88
"CodeCraft"

0 commit comments

Comments
 (0)