Skip to content

Commit

Permalink
try to implement lock and key, watch gradle shit itself again
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 committed Oct 2, 2024
1 parent e7fb704 commit b413a4f
Show file tree
Hide file tree
Showing 8,147 changed files with 123 additions and 212,200 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ neoForge {
}
data {
data()
loadedMods = [neoForge.mods."${mod_id}data"]
programArguments.addAll '--mod', project.mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath()
loadedMods = [mods."${mod_id}data"]
programArguments.addAll '--mod', "${mod_id}", '--all',
'--output', file('src/generated/resources/').getAbsolutePath(),
'--existing', file('src/main/resources/').getAbsolutePath()
}
server {
server()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ protected void addTranslations() {
addDefaultBlock(BCBlocks.GOLD_SOUL_LANTERN);
addDefaultBlock(BCBlocks.IRON_FANCY_ARMOR_STAND);
addDefaultBlock(BCBlocks.SWORD_PEDESTAL);
add(BCItems.LOCK_AND_KEY.get(), "Lock and Key");
add(BCItems.REDSTONE_BOOK.get(), "Redstone: Volume 1");
add("container", "bookcase", "Bookcase");
add("container", "cookie_jar", "Cookie Jar");
Expand All @@ -52,6 +53,7 @@ protected void addTranslations() {
add("container", "shelf", "Shelf");
add("container", "tool_rack", "Tool Rack");
add("itemGroup." + BibliocraftApi.MOD_ID, "Bibliocraft");
add(Translations.LOCK_AND_KEY_NO_CUSTOM_NAME, "You must rename this lock and key before you can apply it to a block!");
add(Translations.REDSTONE_BOOK_TITLE, "Redstone: Volume 1");
add(Translations.REDSTONE_BOOK_TEXT, "When putting this book into a bookcase, the bookcase will emit a redstone signal. The strength of the signal depends on the slot it is placed in. Slot 1 (top left) yields no signal. Slot 2 yields a signal strength of 1. Each slot after that increases the signal strength by one, all the way to slot 16 (bottom right), which yields a signal strength of 15.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ protected void registerModels() {
basicItem(BCItems.GOLD_CHAIN.get());
basicItem(BCItems.GOLD_LANTERN.get());
basicItem(BCItems.GOLD_SOUL_LANTERN.get());
basicItem(BCItems.LOCK_AND_KEY.get());
withExistingParent("fancy_gold_lamp", modLoc("block/fancy_gold_lamp_standing"));
withExistingParent("fancy_iron_lamp", modLoc("block/fancy_iron_lamp_standing"));
withExistingParent("fancy_gold_lantern", modLoc("block/fancy_gold_lantern_standing"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,14 @@ protected void buildRecipes(RecipeOutput output) {
.define('S', Items.SMOOTH_STONE_SLAB)
.unlockedBy("has_smooth_stone_slab", has(Items.SMOOTH_STONE_SLAB))
.save(output);
ShapedRecipeBuilder.shaped(RecipeCategory.TOOLS, BCItems.LOCK_AND_KEY.get())
.pattern("NI")
.pattern("NI")
.pattern(" I")
.define('N', Tags.Items.NUGGETS_GOLD)
.define('I', Tags.Items.INGOTS_GOLD)
.unlockedBy("has_gold_ingot", has(Tags.Items.INGOTS_GOLD))
.save(output);
ShapelessRecipeBuilder.shapeless(RecipeCategory.REDSTONE, BCItems.REDSTONE_BOOK.get())
.requires(Items.BOOK)
.requires(Items.REDSTONE_TORCH)
Expand Down

This file was deleted.

Loading

0 comments on commit b413a4f

Please sign in to comment.