Skip to content

Commit

Permalink
sounds for seed balls. tofu copy food.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerussianguy committed Sep 1, 2022
1 parent 8b85da7 commit ace9879
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def generate(rm: ResourceManager):
drying_recipe(rm, 'drying_fruit', not_rotten(has_trait('#tfc:foods/fruits', 'firmalife:dried', True)), item_stack_provider(copy_input=True, add_trait='firmalife:dried'))
drying_recipe(rm, 'cinnamon', 'firmalife:cinnamon_bark', item_stack_provider('firmalife:spice/cinnamon'))
drying_recipe(rm, 'dry_grass', 'tfc:thatch', item_stack_provider('tfc:groundcover/dead_grass'))
drying_recipe(rm, 'tofu', 'firmalife:food/soy_mixture', item_stack_provider('firmalife:food/tofu'))
drying_recipe(rm, 'tofu', 'firmalife:food/soy_mixture', item_stack_provider('firmalife:food/tofu', copy_food=True))

smoking_recipe(rm, 'meat', not_rotten(has_trait(has_trait('#tfc:foods/raw_meats', 'firmalife:smoked', True), 'tfc:brined')), item_stack_provider(copy_input=True, add_trait='firmalife:smoked'))
smoking_recipe(rm, 'cheese', not_rotten(has_trait('#firmalife:foods/cheeses', 'firmalife:smoked', True)), item_stack_provider(copy_input=True, add_trait='firmalife:smoked'))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.minecraft.core.particles.ItemParticleOption;
import net.minecraft.core.particles.ParticleOptions;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.projectile.ThrowableItemProjectile;
Expand Down Expand Up @@ -65,6 +66,7 @@ protected void onHit(HitResult hit)
super.onHit(hit);
if (!this.level.isClientSide)
{
Helpers.playSound(level, blockPosition(), SoundEvents.ROOTED_DIRT_PLACE);
spread(level, blockPosition());
this.level.broadcastEntityEvent(this, (byte) 3);
this.discard();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public InteractionResultHolder<ItemStack> use(Level level, Player player, Intera
player.getCooldowns().addCooldown(this, 20);
if (!level.isClientSide)
{
Helpers.playSound(level, player.blockPosition(), SoundEvents.SNOWBALL_THROW);
SeedBall ball = new SeedBall(player, level);
ball.setItem(held);
ball.shootFromRotation(player, player.getXRot(), player.getYRot(), 0.0F, 1.5F, 1.0F);
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/data/firmalife/recipes/drying/tofu.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"item": "firmalife:food/soy_mixture"
},
"result": {
"item": "firmalife:food/tofu"
"stack": {
"item": "firmalife:food/tofu"
},
"modifiers": [
"tfc:copy_food"
]
}
}

0 comments on commit ace9879

Please sign in to comment.