Skip to content

Commit

Permalink
3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gottsch committed Jul 12, 2023
1 parent 1988037 commit a7dc8c9
Show file tree
Hide file tree
Showing 12 changed files with 59 additions and 91 deletions.
20 changes: 8 additions & 12 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,42 @@
<classpath>
<classpathentry kind="src" output="bin/main" path="src/main/java">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src/main/resources">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/main" path="src/generated/resources">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
<attribute name="gradle_scope" value="main"/>
<attribute name="gradle_used_by_scope" value="main,test"/>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/test" path="src/test/java">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
<attribute name="test" value="true"/>
<attribute name="gradle_scope" value="test"/>
<attribute name="gradle_used_by_scope" value="test"/>
<attribute name="test" value="true"/>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="bin/test" path="src/test/resources">
<attributes>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
<attribute name="test" value="true"/>
<attribute name="gradle_scope" value="test"/>
<attribute name="gradle_used_by_scope" value="test"/>
<attribute name="test" value="true"/>
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="C:\Development\workspace\git\Treasure-1.18.2\build\natives"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package_group=gottsch
# use alpha, beta, or v (for version)
mod_version_type=

mod_version=3.1.0
mod_version=3.1.1

#versions
mc_version=1.18.2
Expand Down
5 changes: 5 additions & 0 deletions src/generated/resources/assets/treasure2/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
"chat.treasure2.key.key_break": "Your key broke whilst attempting to unlock the lock!",
"chat.treasure2.key.key_not_fit": "Your key doesn't fit the lock!",
"chat.treasure2.key.key_unable_unlock": "Your key failed to unlock the lock!",
"entity.treasure2.bound_soul": "Bound Soul",
"entity.treasure2.cauldron_chest_mimic": "Cauldron Chest Mimic",
"entity.treasure2.pirate_chest_mimic": "Pirate Chest Mimic",
"entity.treasure2.viking_chest_mimic": "Viking Chest Mimic",
"entity.treasure2.wood_chest_mimic": "Wood Chest Mimic",
"item.treasure2.axe_of_durin": "Axe of Durin",
"item.treasure2.black_pearl": "Black Pearl",
"item.treasure2.black_sword": "The Black Sword",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ protected void registerModels() {
singleTexture(TreasureItems.TREASURE_TAB.get().getRegistryName().getPath(),
mcLoc("item/generated"), "layer0", modLoc("item/treasure_tab"));

singleTexture(TreasureItems.ADORNMENTS_TAB.get().getRegistryName().getPath(),
mcLoc("item/generated"), "layer0", modLoc("item/adornment/ruby_gold_ring"));
// singleTexture(TreasureItems.ADORNMENTS_TAB.get().getRegistryName().getPath(),
// mcLoc("item/generated"), "layer0", modLoc("item/adornment/ruby_gold_ring"));

// keys
singleTexture(TreasureItems.WOOD_KEY.get().getRegistryName().getPath(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import mod.gottsch.forge.treasure2.Treasure;
import mod.gottsch.forge.treasure2.core.block.TreasureBlocks;
import mod.gottsch.forge.treasure2.core.entity.TreasureEntities;
import mod.gottsch.forge.treasure2.core.item.TreasureItems;
import mod.gottsch.forge.treasure2.core.util.LangUtil;
import net.minecraft.data.DataGenerator;
Expand Down Expand Up @@ -217,6 +218,13 @@ protected void addTranslations() {
// add(TreasureItems.WITHER_STICK_ITEM.get(), "Wither Branch");
// add(TreasureItems.WITHER_ROOT_ITEM.get(), "Wither Root");

// mobs
add(TreasureEntities.BOUND_SOUL_ENTITY_TYPE.get(), "Bound Soul");
add(TreasureEntities.WOOD_CHEST_MIMIC_ENTITY_TYPE.get(), "Wood Chest Mimic");
add(TreasureEntities.PIRATE_CHEST_MIMIC_ENTITY_TYPE.get(), "Pirate Chest Mimic");
add(TreasureEntities.VIKING_CHEST_MIMIC_ENTITY_TYPE.get(), "Viking Chest Mimic");
add(TreasureEntities.CAULDRON_CHEST_MIMIC_ENTITY_TYPE.get(), "Cauldron Chest Mimic");

// eggs
add(TreasureItems.BOUND_SOUL_EGG.get(), "Bound Soul Spawn Egg");
add(TreasureItems.WOOD_CHEST_MIMIC_EGG.get(), "Wood Chest Mimic Spawn Egg");
Expand Down
30 changes: 30 additions & 0 deletions src/main/java/mod/gottsch/forge/treasure2/datagen/Recipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import java.util.function.Consumer;

import mod.gottsch.forge.treasure2.core.block.TreasureBlocks;
import mod.gottsch.forge.treasure2.core.item.TreasureItems;
import net.minecraft.advancements.critereon.InventoryChangeTrigger;
import net.minecraft.advancements.critereon.ItemPredicate;
Expand All @@ -29,6 +30,7 @@
import net.minecraft.data.recipes.SimpleCookingRecipeBuilder;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraft.world.level.block.Blocks;

/**
*
Expand Down Expand Up @@ -195,5 +197,33 @@ protected void buildCraftingRecipes(Consumer<FinishedRecipe> recipe) {
Items.IRON_INGOT, 1.0f, 200)
.unlockedBy("has_weapon", inventoryTrigger(ItemPredicate.Builder.item().of(TreasureItems.IRON_DWARVEN_AXE.get()).build()))
.save(recipe, "iron_ingot_from_dwarven_axe");

// gravestones
ShapedRecipeBuilder.shaped(TreasureBlocks.GRAVESTONE1_POLISHED_GRANITE.get())
.pattern(" t")
.pattern(" ")
.pattern(" x ")
.define('x', Blocks.POLISHED_GRANITE)
.define('t', TreasureItems.TREASURE_TOOL.get())
.unlockedBy("has_tool", InventoryChangeTrigger.TriggerInstance.hasItems(TreasureItems.TREASURE_TOOL.get()))
.save(recipe);

ShapedRecipeBuilder.shaped(TreasureBlocks.GRAVESTONE2_POLISHED_GRANITE.get())
.pattern(" t")
.pattern(" x ")
.pattern(" x ")
.define('x', Blocks.POLISHED_GRANITE)
.define('t', TreasureItems.TREASURE_TOOL.get())
.unlockedBy("has_tool", InventoryChangeTrigger.TriggerInstance.hasItems(TreasureItems.TREASURE_TOOL.get()))
.save(recipe);

ShapedRecipeBuilder.shaped(TreasureBlocks.GRAVESTONE3_POLISHED_GRANITE.get())
.pattern(" xt")
.pattern(" x ")
.pattern(" x ")
.define('x', Blocks.POLISHED_GRANITE)
.define('t', TreasureItems.TREASURE_TOOL.get())
.unlockedBy("has_tool", InventoryChangeTrigger.TriggerInstance.hasItems(TreasureItems.TREASURE_TOOL.get()))
.save(recipe);
}
}
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ issueTrackerURL="https://github.com/gottsch/gottsch-minecraft-Treasure/issues" #
modId="treasure2" #mandatory

# The version number of the mod - there's a few well known ${} variables useable here or just hardcode it
version="3.1.0" #mandatory
version="3.1.1" #mandatory

# A display name for the mod
displayName="Treasure2" #mandatory
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 4 additions & 3 deletions update.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"homepage": "https://minecraft.curseforge.com/projects/treasure2",
"promos": {
"1.18.2-latest": "3.1.0",
"1.18.2-recommended": "3.1.0"
"1.18.2-latest": "3.1.1",
"1.18.2-recommended": "3.1.1"
},
"1.18.2": {
"3.0.0": "Initial port from 1.16.5. See https://raw.githubusercontent.com/gottsch/gottsch-minecraft-Treasure/1.18.2-master/CHANGELOG.md",
"3.1.0": "See https://raw.githubusercontent.com/gottsch/gottsch-minecraft-Treasure/1.18.2-master/CHANGELOG.md"
"3.1.0": "See https://raw.githubusercontent.com/gottsch/gottsch-minecraft-Treasure/1.18.2-master/CHANGELOG.md",
"3.1.1": "See https://raw.githubusercontent.com/gottsch/gottsch-minecraft-Treasure/1.18.2-master/CHANGELOG.md"
}
}

0 comments on commit a7dc8c9

Please sign in to comment.