{
	"display": {
		"icon": {
			"id": "minecraft:creaking_heart"
		},
		"title": {"translate":"Heart Transplanter"},
		"description": {"color":"green","translate":"Place a Creaking Heart with the correct alignment between two Pale Oak Log blocks"},
		"announce_to_chat": true,
		"frame": "task"
	},
	"parent": "blazeandcave:biomes/pale_in_comparison",
	"rewards": {
		"function": "bacap_rewards:biomes/heart_transplanter"
	},		
	"criteria": {
		"place_creaking_heart_awake": {
		  "conditions": {
			"location": [
			  {
				"block": "minecraft:creaking_heart",
				"condition": "minecraft:block_state_property",
				"properties": {
				  "creaking_heart_state": "awake"
				}
			  }
			]
		  },
		  "trigger": "minecraft:placed_block"
		},
		"place_creaking_heart_dormant": {
		  "conditions": {
			"location": [
			  {
				"block": "minecraft:creaking_heart",
				"condition": "minecraft:block_state_property",
				"properties": {
				  "creaking_heart_state": "dormant"
				}
			  }
			]
		  },
		  "trigger": "minecraft:placed_block"
		},
		"place_pale_oak_log": {
		  "conditions": {
			"location": [
			  {
				"condition": "minecraft:any_of",
				"terms": [
				  {
					"condition": "minecraft:all_of",
					"terms": [
					  {
						"condition": "minecraft:location_check",
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "y"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetY": -1,
						"predicate": {
						  "block": {
							"blocks": "minecraft:creaking_heart",
							"state": {
							  "axis": "y"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetY": -2,
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "y"
							}
						  }
						}
					  }
					]
				  },
				  {
					"condition": "minecraft:all_of",
					"terms": [
					  {
						"condition": "minecraft:location_check",
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "y"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetY": 1,
						"predicate": {
						  "block": {
							"blocks": "minecraft:creaking_heart",
							"state": {
							  "axis": "y"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetY": 2,
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "y"
							}
						  }
						}
					  }
					]
				  },
				  {
					"condition": "minecraft:all_of",
					"terms": [
					  {
						"condition": "minecraft:location_check",
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "z"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetZ": -1,
						"predicate": {
						  "block": {
							"blocks": "minecraft:creaking_heart",
							"state": {
							  "axis": "z"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetZ": -2,
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "z"
							}
						  }
						}
					  }
					]
				  },
				  {
					"condition": "minecraft:all_of",
					"terms": [
					  {
						"condition": "minecraft:location_check",
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "z"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetZ": 1,
						"predicate": {
						  "block": {
							"blocks": "minecraft:creaking_heart",
							"state": {
							  "axis": "z"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetZ": 2,
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "z"
							}
						  }
						}
					  }
					]
				  },
				  {
					"condition": "minecraft:all_of",
					"terms": [
					  {
						"condition": "minecraft:location_check",
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "x"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetX": -1,
						"predicate": {
						  "block": {
							"blocks": "minecraft:creaking_heart",
							"state": {
							  "axis": "x"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetX": -2,
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "x"
							}
						  }
						}
					  }
					]
				  },
				  {
					"condition": "minecraft:all_of",
					"terms": [
					  {
						"condition": "minecraft:location_check",
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "x"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetX": 1,
						"predicate": {
						  "block": {
							"blocks": "minecraft:creaking_heart",
							"state": {
							  "axis": "x"
							}
						  }
						}
					  },
					  {
						"condition": "minecraft:location_check",
						"offsetX": 2,
						"predicate": {
						  "block": {
							"blocks": "#minecraft:pale_oak_logs",
							"state": {
							  "axis": "x"
							}
						  }
						}
					  }
					]
				  }
				]
			  }
			]
		  },
		  "trigger": "minecraft:placed_block"
		}
	},
	"requirements": [
		[
			"place_creaking_heart_dormant",
			"place_creaking_heart_awake",
			"place_pale_oak_log"
		]
	]
}