Skip to content

Commit

Permalink
Merge pull request #88 from GrowthcraftCE/bugfix/multiple-bugs-8.1.0-rc1
Browse files Browse the repository at this point in the history
Bugfix/multiple bugs 8.1.0 rc1
  • Loading branch information
Alatyami authored Jun 11, 2023
2 parents b177814 + f1e086f commit 0759b96
Show file tree
Hide file tree
Showing 13 changed files with 178 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public void tick() {
public void tick(Level level, BlockPos blockPos, BlockState blockState, FruitPressBlockEntity blockEntity) {
if(!level.isClientSide
&& level.getBlockState(blockPos.above()).getValue(PRESSED)
&& this.isFluidTankNotFull()
) {
List<FruitPressRecipe> recipes = this.getMatchingRecipes();
FruitPressRecipe recipe = recipes.isEmpty() ? null : recipes.get(0);
Expand Down Expand Up @@ -202,6 +203,10 @@ public boolean isFluidEmpty() {
return getFluidStackInTank(0).isEmpty();
}

public boolean isFluidTankNotFull() {
return getFluidTank(0).getFluidAmount() < getFluidTank(0).getCapacity();
}

public int getTickClock(String type) {
switch (type) {
case "current":
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/growthcraft_apples/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"block.growthcraft_apples.apple_wood_log_stripped": "Stripped Apple Log",
"block.growthcraft_apples.apple_wood_stripped": "Stripped Apple Wood",
"block.growthcraft_apples.bee_box_apple": "Bee Box (Apple)",
"fluid_type.growthcraft_apples:apple_cider_fluid": "Apple Cider",
"fluid_type.growthcraft_apples:apple_juice_fluid": "Apple Juice",
"fluid_type.growthcraft_apples.apple_cider_fluid": "Apple Cider",
"fluid_type.growthcraft_apples.apple_juice_fluid": "Apple Juice",
"item.growthcraft_apples.apple_cider_fluid_bucket": "Apple Cider Bucket",
"item.growthcraft_apples.apple_juice_fluid_bucket": "Apple Juice Bucket",
"item.growthcraft_apples.apple_seeds": "Apple Seeds"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SPS",
"PBP",
"SPS"
],
"key": {
"B": {
"item": "growthcraft_apples:apple_plank_slab"
},
"P": {
"item": "growthcraft_apples:apple_plank"
},
"S": {
"tag": "forge:rods/wooden"
}
},
"result": {
"item": "growthcraft_apples:bee_box_apple"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SPS",
"PBP",
"SPS"
],
"key": {
"B": {
"item": "growthcraft_bamboo:bamboo_plank_slab"
},
"P": {
"item": "growthcraft_bamboo:bamboo_plank"
},
"S": {
"tag": "forge:rods/wooden"
}
},
"result": {
"item": "growthcraft_bamboo:bee_box_bamboo"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "growthcraft_cellar:fermentation_barrel_oak"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "growthcraft_cellar:roaster"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "growthcraft_cellar:brew_kettle_recipe",
"requires_heat": true,
"requires_lid": "false",
"processing_time": 600,
"by_product_chance": 10,
"input_fluid": {
"fluid": "growthcraft_cellar:golden_wort_fluid_source",
"amount": 250
},
"input_item": {
"item": "growthcraft_cellar:hops",
"count": 1
},
"output_fluid": {
"fluid": "growthcraft_cellar:hopped_golden_wort_fluid_source",
"amount": 250
},
"by_product": {
"item": "minecraft:bone_meal",
"count": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "growthcraft_cellar:fermentation_barrel_recipe",
"processing_time": 72000,
"processing_time": 7200,
"ingredient_item": {
"item": "growthcraft_cellar:yeast_brewers",
"count": 1
Expand All @@ -16,7 +16,7 @@
"effects": [
{
"effect": "minecraft:haste",
"duration": 72000,
"duration": 7200,
"amplifier": 3
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"ABA",
"CCC",
"DDD"
],
"key": {
"A": {
"tag": "minecraft:fences"
},
"B": {
"item": "minecraft:piston"
},
"C": {
"tag": "forge:ingots/iron"
},
"D": {
"tag": "minecraft:planks"
}
},
"result": {
"item": "growthcraft_cellar:fruit_press"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"type": "growthcraft_cellar:fermentation_barrel_recipe",
"processing_time": 120,
"processing_time": 3600,
"ingredient_item": {
"item": "growthcraft_cellar:yeast_brewers",
"count": 1
},
"ingredient_fluid": {
"fluid": "growthcraft_cellar:golden_wort_fluid_source",
"fluid": "growthcraft_cellar:hopped_golden_wort_fluid_source",
"amount": 1000
},
"result": {
Expand All @@ -16,7 +16,7 @@
"effects": [
{
"effect": "minecraft:regeneration",
"duration": 120,
"duration": 3600,
"amplifier": 1
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "growthcraft_milk:butter"
},
{
"item": "growthcraft:salt"
}
],
"result": {
"count": 1,
"item": "growthcraft_milk:butter_salted"
}
}
19 changes: 19 additions & 0 deletions src/main/resources/data/growthcraft_rice/recipes/knife.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
" I",
" I ",
"S "
],
"key": {
"I": {
"tag": "forge:ingots/iron"
},
"S": {
"tag": "forge:rods/wooden"
}
},
"result": {
"item": "growthcraft_rice:knife"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"growthcraft_cellar:fruit_press",
"growthcraft_cellar:fruit_press_piston",
"growthcraft_cellar:brew_kettle",
"growthcraft_milk:mixing_vat"
"growthcraft_milk:mixing_vat",
"growthcraft_cellar:roaster"
]
}

0 comments on commit 0759b96

Please sign in to comment.