Вот пример рецепта зелья слабости в Майнкрафте, написанный на английском языке:
# Potion of Weakness Recipe
# Ingredients:
# - 1 Water Bottle
# - 1 Fermented Spider Eye
# Instructions:
# 1. Fill a glass bottle with water by right-clicking on a water source block.
# 2. Craft a Fermented Spider Eye by combining a Spider Eye with Brown Mushroom and Sugar in any crafting grid.
# 3. Place the Water Bottle in the bottom slot of a Brewing Stand.
# 4. Place the Fermented Spider Eye in the top slot of the Brewing Stand.
# 5. Wait for the brewing process to complete. The water bottle will turn into a Potion of Weakness.
# Code example:
water_bottle = "Water Bottle"
fermented_spider_eye = "Fermented Spider Eye"
potion_of_weakness = "Potion of Weakness"
def craft_potion():
fill_water_bottle(water_bottle)
craft_fermented_spider_eye(fermented_spider_eye)
brew_potion(water_bottle, fermented_spider_eye)
def fill_water_bottle(item):
# Code for filling a glass bottle with water
print(f"Filled {item} with water.")
def craft_fermented_spider_eye(item):
# Code for crafting a fermented spider eye
print(f"Crafted {item}.")
def brew_potion(water_bottle, fermented_spider_eye):
# Code for brewing the potion
print(f"Brewed {potion_of_weakness} using {water_bottle} and {fermented_spider_eye}.")
# Calling the function to craft the potion
craft_potion()