Skip to content

Commit

Permalink
- Mixing bowl recipes that result in no fluid output will leave exces…
Browse files Browse the repository at this point in the history
…s fluid in the bowl

- Allow red and yellow bell peppers to grow in greenhouses
- Angry bees will despawn quickly instead of remaining angry forever
  • Loading branch information
eerussianguy committed Dec 11, 2024
1 parent 4ce5e1e commit 39933c0
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 11 deletions.
10 changes: 3 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
### Changes
- Added Stainless Steel jar lids.
- Updated the stomping barrel recipe again.
- Made the check for flowers for bees much more forgiving, most plants should work now.
- Reduced the oil requirement for pizzas to 100 mB.
- Added soybean oil. It burns slightly less efficiently than olive oil in a lamp, and may be substituted for olive oil in pizza.
- Fix bad links for field guide redirects. (Closes #179)
- Updated Chinese translation
- Mixing bowl recipes that result in no fluid output will leave excess fluid in the bowl
- Allow red and yellow bell peppers to grow in greenhouses
- Angry bees will despawn quickly instead of remaining angry forever
2 changes: 2 additions & 0 deletions resources/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def generate(rm: ResourceManager):
simple_plantable(rm, 'green_bean', 'nitrogen', 4, planter='large', firmalife=True)
simple_plantable(rm, 'tomato', 'potassium', 4, planter='large', firmalife=True)
simple_plantable(rm, 'sugarcane', 'potassium', 4, planter='large', firmalife=True)
simple_plantable(rm, 'red_bell_pepper', 'potassium', 6, planter='large')
simple_plantable(rm, 'yellow_bell_pepper', 'potassium', 6, planter='large')
plantable(rm, 'jute', 'tfc:seeds/jute', 'tfc:jute', 'potassium', ['firmalife:block/crop/jute_%s' % i for i in range(0, 5)], 4, 'large')
plantable(rm, 'papyrus', 'tfc:seeds/papyrus', 'tfc:papyrus', 'potassium', ['firmalife:block/crop/papyrus_%s' % i for i in range(0, 6)], 5, 'large')
plantable(rm, 'red_grapes', 'firmalife:seeds/red_grape', 'firmalife:food/red_grapes', 'nitrogen', ['firmalife:block/crop/%s' % c for c in ('grape_leaves', 'grape_leaves_dead', 'grape_leaves_flowering', 'grape_leaves_red')], 0, 'trellis', tier=15, seed_chance=0.1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,12 @@ private void finishMixing()
break;
}
}
inventory.drain(FluidHelpers.BUCKET_VOLUME, IFluidHandler.FluidAction.EXECUTE);
inventory.fill(recipe.getResultFluid(), IFluidHandler.FluidAction.EXECUTE);
inventory.drain(recipe.getFluidIngredient().amount(), IFluidHandler.FluidAction.EXECUTE);
if (!recipe.getResultFluid().isEmpty())
{
inventory.drain(FluidHelpers.BUCKET_VOLUME, IFluidHandler.FluidAction.EXECUTE);
inventory.fill(recipe.getResultFluid(), IFluidHandler.FluidAction.EXECUTE);
}
}
markForSync();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public MixingBowlBlock(ExtendedProperties properties)
@SuppressWarnings("deprecation")
public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult result)
{
ItemStack held = player.getItemInHand(hand);
final ItemStack held = player.getItemInHand(hand);
return level.getBlockEntity(pos, FLBlockEntities.MIXING_BOWL.get()).map(bowl -> {
if (!bowl.isMixing())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void aiStep()
}
else if (tickCount % 400 == 0)
{
if (Calendars.get(this.level()).getTotalCalendarDays() > daySpawned && daySpawned >= 0)
if ((Calendars.get(this.level()).getTotalCalendarDays() > daySpawned && daySpawned >= 0) || isAngry())
{
this.discard();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"__comment__": "This file was automatically created by mcresources",
"planter": "large",
"ingredient": {
"item": "tfc:seeds/red_bell_pepper"
},
"seed": {
"item": "tfc:seeds/red_bell_pepper"
},
"crop": {
"item": "tfc:food/red_bell_pepper"
},
"nutrient": "potassium",
"stages": 6,
"texture": [
"tfc:block/crop/red_bell_pepper_0",
"tfc:block/crop/red_bell_pepper_1",
"tfc:block/crop/red_bell_pepper_2",
"tfc:block/crop/red_bell_pepper_3",
"tfc:block/crop/red_bell_pepper_4",
"tfc:block/crop/red_bell_pepper_5",
"tfc:block/crop/red_bell_pepper_6"
],
"specials": [],
"extra_seed_chance": 0.5
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"__comment__": "This file was automatically created by mcresources",
"planter": "large",
"ingredient": {
"item": "tfc:seeds/yellow_bell_pepper"
},
"seed": {
"item": "tfc:seeds/yellow_bell_pepper"
},
"crop": {
"item": "tfc:food/yellow_bell_pepper"
},
"nutrient": "potassium",
"stages": 6,
"texture": [
"tfc:block/crop/yellow_bell_pepper_0",
"tfc:block/crop/yellow_bell_pepper_1",
"tfc:block/crop/yellow_bell_pepper_2",
"tfc:block/crop/yellow_bell_pepper_3",
"tfc:block/crop/yellow_bell_pepper_4",
"tfc:block/crop/yellow_bell_pepper_5",
"tfc:block/crop/yellow_bell_pepper_6"
],
"specials": [],
"extra_seed_chance": 0.5
}

0 comments on commit 39933c0

Please sign in to comment.