-
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
Showing
25 changed files
with
264 additions
and
19 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
4 changes: 2 additions & 2 deletions
4
src/main/generated/.cache/a0c9365c657f509503fac80b53d576b510533fee
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
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/bd908bddfabee7737f5b730e2e8341ed2e92df63
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
8 changes: 4 additions & 4 deletions
8
src/main/generated/.cache/cb69bf5fbb1a5dd09f0eb40be4f576f70575a6eb
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// 1.20.1 2024-03-20T14:30:52.2617809 Kaf's Valentine Special/Tags for minecraft:item | ||
// 1.20.1 2024-03-20T20:24:26.3805017 Kaf's Valentine Special/Tags for minecraft:item | ||
9c8348c58e3e27b69a4b16f8e20d8eaa980834bc data\c\tags\items\flowers.json | ||
ce6a482785a6e59c4123a2340480b82a07830731 data\c\tags\items\cookies.json | ||
33856e694dfbe2a0b071a848f779d2b7cd215eba data\c\tags\items\cookies.json | ||
9821ba29b28cd7ed1bbbb41aaf307e3c57b56e99 data\c\tags\items\golden_apples.json | ||
2388a7d48daef4a569c89aab474c716a355c724d data\c\tags\items\seeds.json | ||
2388a7d48daef4a569c89aab474c716a355c724d data\minecraft\tags\items\villager_plantable_seeds.json | ||
9c8348c58e3e27b69a4b16f8e20d8eaa980834bc data\c\tags\items\aristeas.json | ||
2388a7d48daef4a569c89aab474c716a355c724d data\botania\tags\items\seed_apothecary_reagent.json | ||
ce6a482785a6e59c4123a2340480b82a07830731 data\origins\tags\items\ignore_diet.json | ||
33856e694dfbe2a0b071a848f779d2b7cd215eba data\origins\tags\items\ignore_diet.json | ||
2388a7d48daef4a569c89aab474c716a355c724d data\naturalist\tags\items\bird_food_items.json | ||
ce6a482785a6e59c4123a2340480b82a07830731 data\kafvalentine\tags\items\kaf_cookie.json | ||
33856e694dfbe2a0b071a848f779d2b7cd215eba data\kafvalentine\tags\items\kaf_cookie.json |
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/fabb740fca7beb5b126bb4f5ff425b6053e9c8d8
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// 1.20.1 2024-03-20T14:30:52.2592759 Kaf's Valentine Special/World Gen | ||
// 1.20.1 2024-03-20T20:24:26.3780005 Kaf's Valentine Special/World Gen | ||
312eff65da6bcfab1829dcdc1e868b55ac396187 data\kafvalentine\worldgen\configured_feature\aristea.json | ||
30a27f2e3d0058747f9ebd18abe2b3e32b5a8d98 data\kafvalentine\worldgen\placed_feature\aristea_placed.json |
6 changes: 6 additions & 0 deletions
6
src/main/generated/assets/kafvalentine/models/item/berry_cookie.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": "kafvalentine:item/berry_cookie" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/generated/assets/kafvalentine/models/item/special_berry_cookie.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": "kafvalentine:item/special_berry_cookie" | ||
} | ||
} |
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
61 changes: 61 additions & 0 deletions
61
src/main/generated/data/kafvalentine/advancements/recipes/food/berry_cookie.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,61 @@ | ||
{ | ||
"parent": "minecraft:recipes/root", | ||
"criteria": { | ||
"has_cookie": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"minecraft:cookie" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_cotton_candy": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"kafvalentine:cotton_candy" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_sweet_berries": { | ||
"conditions": { | ||
"items": [ | ||
{ | ||
"items": [ | ||
"minecraft:sweet_berries" | ||
] | ||
} | ||
] | ||
}, | ||
"trigger": "minecraft:inventory_changed" | ||
}, | ||
"has_the_recipe": { | ||
"conditions": { | ||
"recipe": "minecraft:berry_cookie" | ||
}, | ||
"trigger": "minecraft:recipe_unlocked" | ||
} | ||
}, | ||
"requirements": [ | ||
[ | ||
"has_sweet_berries", | ||
"has_cookie", | ||
"has_cotton_candy", | ||
"has_the_recipe" | ||
] | ||
], | ||
"rewards": { | ||
"recipes": [ | ||
"minecraft:berry_cookie" | ||
] | ||
}, | ||
"sends_telemetry_event": false | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/generated/data/kafvalentine/recipes/berry_cookie.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,25 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"category": "misc", | ||
"key": { | ||
"A": { | ||
"item": "minecraft:sweet_berries" | ||
}, | ||
"B": { | ||
"item": "kafvalentine:cotton_candy" | ||
}, | ||
"C": { | ||
"item": "minecraft:cookie" | ||
} | ||
}, | ||
"pattern": [ | ||
"ABA", | ||
"BCB", | ||
"ABA" | ||
], | ||
"result": { | ||
"count": 2, | ||
"item": "kafvalentine:berry_cookie" | ||
}, | ||
"show_notification": true | ||
} |
11 changes: 11 additions & 0 deletions
11
.../generated/data/kafvalentine/recipes/special_berry_cookie_from_infusing_berry_cookie.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 @@ | ||
{ | ||
"type": "kafvalentine:lovey_dovey_infusing", | ||
"ingredients": [ | ||
{ | ||
"item": "kafvalentine:berry_cookie" | ||
} | ||
], | ||
"output": { | ||
"item": "kafvalentine:special_berry_cookie" | ||
} | ||
} |
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
58 changes: 58 additions & 0 deletions
58
src/main/java/com/codekaffe/valentine/item/custom/BerryCookie.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,58 @@ | ||
package com.codekaffe.valentine.item.custom; | ||
|
||
import net.minecraft.client.item.TooltipContext; | ||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.entity.LivingEntity; | ||
import net.minecraft.entity.effect.StatusEffectInstance; | ||
import net.minecraft.entity.effect.StatusEffects; | ||
import net.minecraft.entity.passive.BatEntity; | ||
import net.minecraft.item.FoodComponent; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.particle.ParticleTypes; | ||
import net.minecraft.server.world.ServerWorld; | ||
import net.minecraft.sound.SoundCategory; | ||
import net.minecraft.sound.SoundEvents; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.util.Formatting; | ||
import net.minecraft.world.World; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.List; | ||
|
||
public class BerryCookie extends Item { | ||
|
||
public static final FoodComponent FOOD_COMPONENT = new FoodComponent.Builder() | ||
.hunger(1) | ||
.saturationModifier(0.1f) | ||
.alwaysEdible() | ||
.statusEffect(new StatusEffectInstance(StatusEffects.JUMP_BOOST, 600), 1f) | ||
.build(); | ||
|
||
public BerryCookie(Settings settings) { | ||
super(settings); | ||
} | ||
|
||
@Override | ||
public void appendTooltip( | ||
ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context | ||
) { | ||
tooltip.add(Text.literal("You're looking berry cute today.").formatted(Formatting.DARK_RED)); | ||
} | ||
|
||
@Override | ||
public ItemStack finishUsing(ItemStack stack, World world, LivingEntity user) { | ||
world.playSound( | ||
user.getX(), | ||
user.getY(), | ||
user.getZ(), | ||
SoundEvents.ENTITY_FOX_AMBIENT, | ||
SoundCategory.PLAYERS, | ||
1f, | ||
1f, | ||
false | ||
); | ||
|
||
return super.finishUsing(stack, world, user); | ||
} | ||
} |
Oops, something went wrong.