-
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.
- Loading branch information
1 parent
534b445
commit 772c3e6
Showing
14 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
src/main/java/net/pengi/potatoperks/item/ModFoodComponents.java
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,26 @@ | ||
package net.pengi.potatoperks.item; | ||
|
||
import net.minecraft.component.type.FoodComponent; | ||
import net.minecraft.entity.effect.StatusEffectInstance; | ||
import net.minecraft.entity.effect.StatusEffects; | ||
|
||
public class ModFoodComponents { | ||
public static final FoodComponent COOKED_PINK_POTATO = new FoodComponent.Builder() | ||
.nutrition(5) | ||
.saturationModifier(0.5f) | ||
.statusEffect(new StatusEffectInstance(StatusEffects.SPEED, 200), 95f) | ||
.build(); | ||
|
||
public static final FoodComponent COOKED_BLUE_POTATO = new FoodComponent.Builder() | ||
.nutrition(5) | ||
.saturationModifier(0.5f) | ||
.statusEffect(new StatusEffectInstance(StatusEffects.JUMP_BOOST, 200), 95f) | ||
.build(); | ||
|
||
public static final FoodComponent COOKED_ORANGE_POTATO = new FoodComponent.Builder() | ||
.nutrition(5) | ||
.saturationModifier(0.5f) | ||
.statusEffect(new StatusEffectInstance(StatusEffects.HASTE, 200), 95f) | ||
.build(); | ||
|
||
} |
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
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/potatoperks/models/item/cooked_blue_potato.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": "potatoperks:item/cooked_blue_potato" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/potatoperks/models/item/cooked_orange_potato.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": "potatoperks:item/cooked_orange_potato" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/potatoperks/models/item/cooked_pink_potato.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": "potatoperks:item/cooked_pink_potato" | ||
} | ||
} |
Binary file added
BIN
+409 Bytes
src/main/resources/assets/potatoperks/textures/item/cooked_blue_potato.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+433 Bytes
src/main/resources/assets/potatoperks/textures/item/cooked_orange_potato.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+416 Bytes
src/main/resources/assets/potatoperks/textures/item/cooked_pink_potato.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions
13
src/main/resources/data/potatoperks/recipe/cooked_blue_potato_from_smelting_blue_potato.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,13 @@ | ||
{ | ||
"type": "minecraft:smelting", | ||
"category": "misc", | ||
"cookingtime": 200, | ||
"experience": 0.3, | ||
"group": "blue_potato", | ||
"ingredient": { | ||
"item": "potatoperks:blue_potato" | ||
}, | ||
"result": { | ||
"id": "potatoperks:cooked_blue_potato" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...n/resources/data/potatoperks/recipe/cooked_orange_potato_from_smelting_orange_potato.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,13 @@ | ||
{ | ||
"type": "minecraft:smelting", | ||
"category": "misc", | ||
"cookingtime": 200, | ||
"experience": 0.3, | ||
"group": "orange_potato", | ||
"ingredient": { | ||
"item": "potatoperks:orange_potato" | ||
}, | ||
"result": { | ||
"id": "potatoperks:cooked_orange_potato" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/resources/data/potatoperks/recipe/cooked_pink_potato_from_smelting_pink_potato.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,13 @@ | ||
{ | ||
"type": "minecraft:smelting", | ||
"category": "misc", | ||
"cookingtime": 200, | ||
"experience": 0.3, | ||
"group": "pink_potato", | ||
"ingredient": { | ||
"item": "potatoperks:pink_potato" | ||
}, | ||
"result": { | ||
"id": "potatoperks:cooked_pink_potato" | ||
} | ||
} |
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