Skip to content

Commit

Permalink
updated the version
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeCraftPlugin committed Jun 16, 2023
1 parent 5313ad6 commit 43ccd35
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ project.plugins.withType(MavenPublishPlugin).all {
}
}

exec {
commandLine "echo", "##[set-output name=version;]${project.version}";
}
// exec {
// commandLine "echo", "##[set-output name=version;]${project.version}";
// }
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ loader_version=0.14.21
#Fabric api
fabric_version=0.82.0+1.19.4
# Mod Properties
mod_version=1.19.4-1.3.0
mod_version=1.19.4-1.3.2
maven_group=io.github.codecraftplugin
archives_base_name=registry-lib

Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@ public class RegisteryLib implements ModInitializer {
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
Item itemgroupicon = Registry.registerItems("itemgroupicon",MOD_ID,new Item(new FabricItemSettings()), ItemGroups.TOOLS);
ItemGroup testitemgroup = Registry.registerItemGroup("testitemgroup",MOD_ID,()->new ItemStack(itemgroupicon));
Item registeritem = Registry.registerItems("registeritem",MOD_ID,new Item(new FabricItemSettings()), testitemgroup);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,65 @@ public static void offerSwordRecipe(Consumer<RecipeJsonProvider> exporter, ItemC
FabricRecipeProvider.conditionsFromItem(input))
.group("sword").offerTo(exporter);
}

/**
* for making a Chestplate recipe
* @param exporter the expoter
* @param output the output that is the Chestplate
* @param input the material the Chestplate is made up of (wood, stone, iron, gold, diamond, any modded material)
*/
public static void offerChestplateRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
.pattern("# #")
.pattern("###")
.pattern("###")
.criterion(FabricRecipeProvider.hasItem(input),
FabricRecipeProvider.conditionsFromItem(input))
.group("chestplate").offerTo(exporter);
}
/**
* for making a Boots recipe
* @param exporter the exporter
* @param output the output that is the Boots
* @param input the material the Boots is made up of (wood, stone, iron, gold, diamond, any modded material)
*/
public static void offerBootsRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
.pattern(" ")
.pattern("# #")
.pattern("# #")
.criterion(FabricRecipeProvider.hasItem(input),
FabricRecipeProvider.conditionsFromItem(input))
.group("boots").offerTo(exporter);
}
/**
* for making a Leggings recipe
* @param exporter the exporter
* @param output the output that is the Leggings
* @param input the material the Leggings is made up of (wood, stone, iron, gold, diamond, any modded material)
*/
public static void offerLeggingsRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
.pattern("###")
.pattern("# #")
.pattern("# #")
.criterion(FabricRecipeProvider.hasItem(input),
FabricRecipeProvider.conditionsFromItem(input))
.group("leggings").offerTo(exporter);
}
/**
* for making a Helmet recipe
* @param exporter the exporter
* @param output the output that is the Helmet
* @param input the material the Helmet is made up of (wood, stone, iron, gold, diamond, any modded material)
*/
public static void offerHelmetRecipe(Consumer<RecipeJsonProvider> exporter, ItemConvertible output, ItemConvertible input) {
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, output).input(Character.valueOf('#'), input)
.pattern("###")
.pattern("# #")
.pattern(" ")
.criterion(FabricRecipeProvider.hasItem(input),
FabricRecipeProvider.conditionsFromItem(input))
.group("helmet").offerTo(exporter);
}
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schemaVersion": 1,
"id": "registrylib",
"version": "${version}",
"name": "RegisteryLib",
"name": "Registery Lib",
"description": "it is a registery libary for my ease of work",
"authors": [
"CodeCraft"
Expand Down

0 comments on commit 43ccd35

Please sign in to comment.