Skip to content
TheChatArchiveThe Chat Archive
gpt-4o-2024-08-06· OpenAIAi2 WildChat-4.8M (AI2)

Напишем кастомные крафты для плагина Brewery. Сделаем тыквенный сок: Имя:…

  1. User

    User: Напишем кастомные крафты для плагина Brewery. Сделаем тыквенный сок:

    Имя: Тыквенный сок. Рецепт: 4 тыквы, 3 сахара. Варка: 3 минуты. Дистиляция: 1 раз. Опьянение: -0,5/10.

    -- Recipes for Potions --

    name: Different names for bad/normal/good (Formatting codes possible: such as &6)

    ingredients: List of 'material/amount'

    With an item in your hand, use /brew ItemName to get its material for use in a recipe

    (Item-ids instead of material are not supported by bukkit anymore and will not work)

    A list of materials can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

    Plugin items with 'plugin:id' (Currently supporting ExoticGarden, Slimefun, MMOItems, Brewery)

    Or a custom item defined above

    cookingtime: Time in real minutes ingredients have to boil

    distillruns: How often it has to be distilled for full alcohol (0=without distilling)

    distilltime: How long (in seconds) one distill-run takes (0=Default time of 40 sec) MC Default would be 20 sec

    wood: Wood of the barrel 0=any 1=Birch 2=Oak 3=Jungle 4=Spruce 5=Acacia 6=Dark Oak 7=Crimson 8=Warped 9=Mangrove

    The Minecraft barrel is made of oak

    age: Time in Minecraft-days, the potion has to age in a barrel 0=no aging

    color: Color of the potion after distilling/aging.

    Usable Colors: DARK_RED, RED, BRIGHT_RED, ORANGE, YELLOW, PINK, PURPLE, BLUE, CYAN, WATER, TEAL, OLIVE, GREEN, LIME, BLACK, GREY, BRIGHT_GREY, WHITE

    Or RGB colors (hex: for example '99FF33') (with '') (search for "HTML color" on the internet)

    difficulty: 1-10 accuracy needed to get good quality (1 = unaccurate/easy, 10 = very precise/hard)

    alcohol: Absolute amount of alcohol 0-100 in a perfect potion (will be added directly to the player, where 100 means fainting)

    lore: List of additional text on the finished brew. (Formatting codes possible: such as &6)

    Specific lore for quality possible, using + bad, ++ normal, +++ good, added to the front of the line.

    servercommands: List of Commands executed by the -Server- when drinking the brew (Can use %player_name% %quality%)

    playercommands: List of Commands executed by the -Player- when drinking the brew (Can use %player_name% %quality%)

    Specific Commands for quality possible, using + bad, ++ normal, +++ good, added to the front of the line.

    drinkmessage: Chat-message to the Player when drinking the Brew

    drinktitle: Title on Screen to the Player when drinking the Brew

    customModelData: Custom Model Data Tag. This is a number that can be used to add custom textures to the item.

    Can specify one for all, or one for each quality, separated by /

    effects: List of effect/level/duration Special potion-effect when drinking, duration in sek.

    Possible Effects: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html

    Level or Duration ranges may be specified with a "-", ex. 'SPEED/1-2/30-40' = lvl 1 and 30 sec at worst and lvl 2 and 40 sec at best

    Ranges also work high-low, ex. 'POISON/3-1/20-5' for weaker effects at good quality.

    Highest possible Duration: 1638 sec. Instant Effects dont need any duration specified.

    recipes:

    Example Recipe with every possible entry first:

    ex: name: Bad Example/Example/Good Example ingredients: - Diamond/1 - Spruce_Planks/8 - Bedrock/1 - Brewery:Wheatbeer/2

    - ExoticGarden:Grape/3

      - ex-item/4
    cookingtime: 3
    distillruns: 2
    distilltime: 60
    wood: 4
    age: 11
    color: DARK_RED
    difficulty: 3
    alcohol: 14
    lore:
      - This is an examble brew
      - ++Just a normal Example
      - This text would be on the brew
      - + Smells disgusting
      - ++ Smells alright
      - +++ Smells really good
    servercommands:
      - +++ weather clear
      - + weather rain
    playercommands:
      - homes
    drinkmessage: Tastes good
    drinktitle: Warms you from inside
    customModelData: 556/557/557
    effects:
      - FIRE_RESISTANCE/20
      - HEAL/1
      - WEAKNESS/2-3/50-60
      - POISON/1-0/20-0
    

    User: Напишем кастомные крафты для плагина Brewery. Сделаем тыквенный сок:

    Имя: Тыквенный сок. Рецепт: 4 тыквы, 3 сахара. Варка: 3 минуты. Дистиляция: 1 раз. Опьянение: -0,5/10. Цвет: Оранжевый.

    -- Recipes for Potions --

    name: Different names for bad/normal/good (Formatting codes possible: such as &6)

    ingredients: List of 'material/amount'

    With an item in your hand, use /brew ItemName to get its material for use in a recipe

    (Item-ids instead of material are not supported by bukkit anymore and will not work)

    A list of materials can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

    Plugin items with 'plugin:id' (Currently supporting ExoticGarden, Slimefun, MMOItems, Brewery)

    Or a custom item defined above

    cookingtime: Time in real minutes ingredients have to boil

    distillruns: How often it has to be distilled for full alcohol (0=without distilling)

    distilltime: How long (in seconds) one distill-run takes (0=Default time of 40 sec) MC Default would be 20 sec

    wood: Wood of the barrel 0=any 1=Birch 2=Oak 3=Jungle 4=Spruce 5=Acacia 6=Dark Oak 7=Crimson 8=Warped 9=Mangrove

    The Minecraft barrel is made of oak

    age: Time in Minecraft-days, the potion has to age in a barrel 0=no aging

    color: Color of the potion after distilling/aging.

    Usable Colors: DARK_RED, RED, BRIGHT_RED, ORANGE, YELLOW, PINK, PURPLE, BLUE, CYAN, WATER, TEAL, OLIVE, GREEN, LIME, BLACK, GREY, BRIGHT_GREY, WHITE

    Or RGB colors (hex: for example '99FF33') (with '') (search for "HTML color" on the internet)

    difficulty: 1-10 accuracy needed to get good quality (1 = unaccurate/easy, 10 = very precise/hard)

    alcohol: Absolute amount of alcohol 0-100 in a perfect potion (will be added directly to the player, where 100 means fainting)

    lore: List of additional text on the finished brew. (Formatting codes possible: such as &6)

    Specific lore for quality possible, using + bad, ++ normal, +++ good, added to the front of the line.

    servercommands: List of Commands executed by the -Server- when drinking the brew (Can use %player_name% %quality%)

    playercommands: List of Commands executed by the -Player- when drinking the brew (Can use %player_name% %quality%)

    Specific Commands for quality possible, using + bad, ++ normal, +++ good, added to the front of the line.

    drinkmessage: Chat-message to the Player when drinking the Brew

    drinktitle: Title on Screen to the Player when drinking the Brew

    customModelData: Custom Model Data Tag. This is a number that can be used to add custom textures to the item.

    Can specify one for all, or one for each quality, separated by /

    effects: List of effect/level/duration Special potion-effect when drinking, duration in sek.

    Possible Effects: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html

    Level or Duration ranges may be specified with a "-", ex. 'SPEED/1-2/30-40' = lvl 1 and 30 sec at worst and lvl 2 and 40 sec at best

    Ranges also work high-low, ex. 'POISON/3-1/20-5' for weaker effects at good quality.

    Highest possible Duration: 1638 sec. Instant Effects dont need any duration specified.

    recipes:

    Example Recipe with every possible entry first:

    ex: name: Bad Example/Example/Good Example ingredients: - Diamond/1 - Spruce_Planks/8 - Bedrock/1 - Brewery:Wheatbeer/2

    - ExoticGarden:Grape/3

      - ex-item/4
    cookingtime: 3
    distillruns: 2
    distilltime: 60
    wood: 4
    age: 11
    color: DARK_RED
    difficulty: 3
    alcohol: 14
    lore:
      - This is an examble brew
      - ++Just a normal Example
      - This text would be on the brew
      - + Smells disgusting
      - ++ Smells alright
      - +++ Smells really good
    servercommands:
      - +++ weather clear
      - + weather rain
    playercommands:
      - homes
    drinkmessage: Tastes good
    drinktitle: Warms you from inside
    customModelData: 556/557/557
    effects:
      - FIRE_RESISTANCE/20
      - HEAL/1
      - WEAKNESS/2-3/50-60
      - POISON/1-0/20-0
    

    Assistant:

  2. Assistant

    Конечно! Давайте создадим кастомный рецепт для "Тыквенного сока". Вот как это можно записать в конфигурации плагина Brewery:

    recipes:
      pumpkin_juice:
        name: &6Противный Тыквенный Сок/&6Тыквенный Сок/&6Вкусный Тыквенный Сок
        ingredients:
          - PUMPKIN/4
          - SUGAR/3
        cookingtime: 3
        distillruns: 1
        color: ORANGE
        difficulty: 2
        alcohol: -5
        lore:
          - + Этот напиток странно пахнет
          - ++ Освежающий аромат
          - +++ Невероятно вкусный тыквенный аромат
        drinkmessage: Ты чувствуешь вкус тыквы!
        drinktitle: Освежает и бодрит
        effects:
          - SPEED/1-2/30-40  # Пример эффекта ускорения, менять на ваше усмотрение
    

    Пояснения:

    • name: Название напитка для разных качеств (плохое/нормальное/хорошее) с использованием форматирования.
    • ingredients: Ингредиенты с их количеством.
    • cookingtime: Время, необходимое для варки (в минутах).
    • distillruns: Количество дистилляций.
    • color: Цвет напитка после дистилляции/выдержки.
    • difficulty: Уровень сложности достижения хорошего качества напитка.
    • alcohol: Уровень опьянения. В данном случае установлен отрицательный (-5), чтобы уменьшить опьянение.
    • lore: Дополнительное описание, которое будет отображаться на элементе. Разные строки для разных качеств.
    • drinkmessage: Сообщение в чате при употреблении напитка.
    • drinktitle: Заголовок на экране при употреблении напитка.
    • effects: Эффекты при употреблении напитка (переход скорости и т.д.).

    Этот рецепт можно добавить в соответствующий конфигурационный файл плагина Brewery, чтобы он стал доступен на вашем сервере Minecraft. Не забудьте протестировать его, чтобы убедиться, что он соответствует вашим ожиданиям.