forked from baguchi/TofuCraftReload-Recode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request baguchi#23 from YukkuriLaboratory/baguchi#21
baguchi#21 豆腐ステーキ、五平餅、赤いスープ
- Loading branch information
Showing
20 changed files
with
325 additions
and
9 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/tofucraft/models/item/crimson_soup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "tofucraft:item/crimson_soup" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/tofucraft/models/item/goheimochi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "tofucraft:item/goheimochi" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/generated/resources/assets/tofucraft/models/item/tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "tofucraft:item/tofusteak" | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...d/resources/data/tofucraft/advancements/recipes/tofucraft/campfire_cooking_tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_item": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"tofucraft:tofuishi" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "tofucraft:campfire_cooking_tofusteak" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"tofucraft:campfire_cooking_tofusteak" | ||
] | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/generated/resources/data/tofucraft/advancements/recipes/tofucraft/crimson_soup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_item": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"tofucraft:seeds_soybeans_nether" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "tofucraft:crimson_soup" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"tofucraft:crimson_soup" | ||
] | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/generated/resources/data/tofucraft/advancements/recipes/tofucraft/goheimochi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_item": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"tofucraft:miso" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "tofucraft:goheimochi" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"tofucraft:goheimochi" | ||
] | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...generated/resources/data/tofucraft/advancements/recipes/tofucraft/smelting_tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_item": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"tofucraft:tofuishi" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "tofucraft:smelting_tofusteak" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"tofucraft:smelting_tofusteak" | ||
] | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/generated/resources/data/tofucraft/advancements/recipes/tofucraft/smoking_tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_item": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"tofucraft:tofuishi" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "tofucraft:smoking_tofusteak" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_item", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"tofucraft:smoking_tofusteak" | ||
] | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/generated/resources/data/tofucraft/recipes/campfire_cooking_tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "minecraft:campfire_cooking", | ||
"cookingtime": 600, | ||
"experience": 0.1, | ||
"ingredient": { | ||
"item": "tofucraft:tofuishi" | ||
}, | ||
"result": "tofucraft:tofusteak" | ||
} |
20 changes: 20 additions & 0 deletions
20
src/generated/resources/data/tofucraft/recipes/crimson_soup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shapeless", | ||
"ingredients": [ | ||
{ | ||
"item": "tofucraft:seeds_soybeans_nether" | ||
}, | ||
{ | ||
"item": "tofucraft:seeds_soybeans_nether" | ||
}, | ||
{ | ||
"item": "minecraft:crimson_fungus" | ||
}, | ||
{ | ||
"item": "minecraft:bowl" | ||
} | ||
], | ||
"result": { | ||
"item": "tofucraft:crimson_soup" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/generated/resources/data/tofucraft/recipes/goheimochi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"key": { | ||
"#": { | ||
"item": "tofucraft:onigiri" | ||
}, | ||
"M": { | ||
"item": "tofucraft:miso" | ||
}, | ||
"S": { | ||
"item": "minecraft:stick" | ||
} | ||
}, | ||
"pattern": [ | ||
"#", | ||
"M", | ||
"S" | ||
], | ||
"result": { | ||
"item": "tofucraft:goheimochi" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/generated/resources/data/tofucraft/recipes/smelting_tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "minecraft:smelting", | ||
"cookingtime": 200, | ||
"experience": 0.1, | ||
"ingredient": { | ||
"item": "tofucraft:tofuishi" | ||
}, | ||
"result": "tofucraft:tofusteak" | ||
} |
9 changes: 9 additions & 0 deletions
9
src/generated/resources/data/tofucraft/recipes/smoking_tofusteak.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": "minecraft:smoking", | ||
"cookingtime": 100, | ||
"experience": 0.1, | ||
"ingredient": { | ||
"item": "tofucraft:tofuishi" | ||
}, | ||
"result": "tofucraft:tofusteak" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package baguchan.tofucraft.item; | ||
|
||
import net.minecraft.world.entity.LivingEntity; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.Items; | ||
import net.minecraft.world.level.Level; | ||
|
||
public class StickFoodItem extends Item { | ||
public StickFoodItem(Item.Properties properties) { | ||
super(properties); | ||
} | ||
|
||
@Override | ||
public ItemStack finishUsingItem(ItemStack p_41409_, Level p_41410_, LivingEntity p_41411_) { | ||
if (this.isEdible()) { | ||
p_41411_.eat(p_41410_, p_41409_); | ||
return new ItemStack(Items.STICK); | ||
} | ||
return super.finishUsingItem(p_41409_, p_41410_, p_41411_); | ||
} | ||
} |
Oops, something went wrong.