-
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
d7c0679
commit 659b536
Showing
20 changed files
with
86 additions
and
22 deletions.
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
1 change: 0 additions & 1 deletion
1
src/main/java/com/blou/bobacraft/blockitems/BlackMilkTeaItem.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
1 change: 0 additions & 1 deletion
1
src/main/java/com/blou/bobacraft/blockitems/JasmineMilkTeaItem.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
1 change: 0 additions & 1 deletion
1
src/main/java/com/blou/bobacraft/blockitems/StrawberryMilkTeaItem.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
1 change: 0 additions & 1 deletion
1
src/main/java/com/blou/bobacraft/blockitems/TaroMilkTeaItem.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
1 change: 0 additions & 1 deletion
1
src/main/java/com/blou/bobacraft/blockitems/ThaiMilkTeaItem.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
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
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
26 changes: 26 additions & 0 deletions
26
src/main/java/com/blou/bobacraft/items/BobaPopsicleItem.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 com.blou.bobacraft.items; | ||
|
||
import net.minecraft.item.Food; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemGroup; | ||
import net.minecraft.item.Rarity; | ||
|
||
public class BobaPopsicleItem extends Item { | ||
|
||
private static final int maxStackSize = 16; | ||
private static final int hunger = 16; // Restores 8 hearts. | ||
private static final float saturation = 1.2f; | ||
|
||
public BobaPopsicleItem(ItemGroup itemGroup) { | ||
super(new Item.Properties() | ||
.group(itemGroup) | ||
.maxStackSize(maxStackSize) | ||
.rarity(Rarity.COMMON) | ||
.food(new Food.Builder() | ||
.hunger(hunger) | ||
.saturation(saturation) | ||
.setAlwaysEdible() | ||
.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
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/bobacraft/models/item/boba_popsicle_item.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": "item/generated", | ||
"textures": { | ||
"layer0": "bobacraft:items/boba_popsicle_item" | ||
} | ||
} |
Binary file added
BIN
+1.45 KB
src/main/resources/assets/bobacraft/textures/items/boba_popsicle_item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
src/main/resources/data/bobacraft/recipes/boba_popsicle_item.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_shaped", | ||
"pattern": | ||
[ | ||
"i", | ||
"b", | ||
"s" | ||
], | ||
"key": | ||
{ | ||
"i": { "item": "minecraft:ice" }, | ||
"b": { "tag": "bobacraft:bobadrinks" }, | ||
"s": { "item": "minecraft:stick" } | ||
}, | ||
"result": | ||
{ | ||
"item": "bobacraft:boba_popsicle_item", | ||
"count": 1 | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/resources/data/bobacraft/tags/items/bobadrinks.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,11 @@ | ||
{ | ||
"replace": false, | ||
"values": [ | ||
"bobacraft:black_milk_tea_block", | ||
"bobacraft:thai_milk_tea_block", | ||
"bobacraft:green_milk_tea_block", | ||
"bobacraft:jasmine_milk_tea_block", | ||
"bobacraft:taro_milk_tea_block", | ||
"bobacraft:strawberry_milk_tea_block" | ||
] | ||
} |