DieReicheErethons / Brewery

GNU General Public License v3.0
162 stars 185 forks source link

Need help for add recipes (French at possible) #278

Closed craftish37 closed 4 years ago

craftish37 commented 4 years ago

Hey, I've a Minecraft server and I've add your plugin on. It's fantastic !!! But, I want add recipes to have a larger variety of drinks for more fun and farm. Also, can you explain to me how can I add recipes on ? I'm on a MacBook, just for the information ;)

Have a nice day, Craftish

Sn0wStorm commented 4 years ago

Sorry i don’t speak french haha The best way is to download Sublime Text and then open the config.yml with it. Then copy a recipe that is like to the one you want to make. And then change the copy to the name and ingredients you want.

Sent with GitHawk

craftish37 commented 4 years ago

Ok, don't speak French is not a problem 😂 But where can I find the config.yml and how ? I'm very late in programatic and informatic 😅

mcgodbuild commented 4 years ago

When you installed the brewery plugin on your server, it will create a few folders. This should all be in your server files. example2

When you open up th brewery map you get this

example3

open the config.yml

craftish37 commented 4 years ago

It's fantastic, it works :o

But, after a recipe add, it doesn't function :c

Have you an idea for what it's broke ? :c


config for Brewery.jar

-- Settings --

Defaults are written in []

Languagefile to be used (found in plugins/Brewery/languages)

language: en

If the player wakes up at /home when logging in after excessive drinking (/home plugin must be installed!) [true]

enableHome: true

Type of the home-teleport: ['cmd: home']

bed = Player will be teleported to his spawn bed

'cmd: home' = /home will be executed by the player. He has to have permissions for it without any delay!

'cmd: spawn' = /spawn will be executed by the player.

'cmd: whatever' = /whatever will be executed by the player.

homeType: 'cmd: home'

If the player "wakes up" at a random place when offline for some time while drinking (the places have to be defined with '/brew Wakeup add' through an admin)

The Player wakes at the nearest of two random places of his world [true]

enableWake: true

If the Player may have to try multiple times when logging in while extremely drunk [true]

enableLoginDisallow: true

If the Player faints shortly (gets kicked from the server) if he drinks the max amount of alcohol possible [false]

enableKickOnOverdrink: false

If the Player vomits on high drunkeness (drops item defined below) [true]

The item can not be collected and stays on the ground until it despawns.

enablePuke: true

Item that is dropped multiple times uncollectable when puking [Soul_Sand]

pukeItem: Soul_Sand

Time in seconds until the pukeitems despawn, (mc default is 300 = 5 min) [60]

If the item despawn time was changed in the spigot.yml, the pukeDespawntime changes as well.

pukeDespawntime: 60

Consumable Item/strength. Decreases the alcohol level by when consumed. (list)

drainItems:

Time (in days) that drunkeness-data stays in memory after a player goes offline, to apply hangover etc. [7]

hangoverDays: 7

If crafting and using of the Brew Sealing Table is enabled (2 Bottles over 4 Planks) [true, true]

craftSealingTable: true enableSealingTable: true

Color the Item information (lore) depending on quality while it is 1. in a barrel and/or 2. in a brewing stand [true, true]

colorInBarrels: true colorInBrewer: true

Always show the 1-5 stars on the item depending on the quality. If false, they will only appear when brewing [true]

alwaysShowQuality: true

Always show the alcohol content on the item. If false, it will only show in the brewing stand [false]

alwaysShowAlc: false

If a Large Barrel can be opened by clicking on any of its blocks, not just Spigot or Sign. This is always true for Small Barrels. [true]

openLargeBarrelEverywhere: true

If aging in -Minecraft- Barrels in enabled [true] and how many Brewery drinks can be put into them [6]

ageInMCBarrels: true maxBrewsInMCBarrels: 6

The used Ingredients and other brewing-data is saved to all Brewery Items. To prevent

hacked clients from reading what exactly was used to brew an item, the data can be encoded/scrambled.

This is a fast process to stop players from hacking out recipes, once they get hold of a brew.

Only drawback: brew items can only be used on another server with the same encodeKey.

When using Brews on multiple (BungeeCord) Servers, define a shared Database below at 'multiServerDB'

So enable this if you want to make recipe cheating harder, but don't share any brews by world download, schematics, or other means. [false]

enableEncode: false encodeKey: -3824438677405431881

Enable checking for Updates, Checks the curseforge api for updates to Brewery [true]

If an Update is found a Message is logged on Server-start and displayed to OPs joining the game

updateCheck: true

Autosave interval in minutes [3]

autosave: 3

Show debug messages in log [false]

debug: false

Config Version

version: '2.1.1'

-- Define custom items --

The defined id can then be used in recipes

matchAny: true if it is already enough if one of the info matches

material: Which type the item has to be

name: Which name the item has to be (Formatting codes possible: such as &6)

lore: What has to be in the lore of the item

customItems:

Three Example Items

ex-item:

A Barrier item called Wall and has the given line in its lore

material: Barrier
name: 'Wall'
lore:
  - '&7Very well protected'

ex-item2:

Using matchAny only one of the following has to match.

# In this case on of the door types, or an item called Beechwood Door, or an item with 'A door' in its lore
matchAny: true
material:
  - Acacia_Door
  - Oak_Door
  - Spruce_Door
name:
  - 'Beechwood Door'
lore:
  - 'A door'

rasp: name: '&cRaspberry'

blue-flowers: matchAny: true material:

-- Ingredients in the Cauldron --

Which Ingredients are accepted by the Cauldron and the base potion resulting from them

You only need to add something here if you want to specify a custom name or color for the base potion

name: Name of the base potion coming out of the Cauldron (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

color: Color of the potion from a cauldron. Defaults to CYAN

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)

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

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

cauldron:

Example with all possible entries

ex: name: Example ingredients:

-- 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

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%)

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:

I don't want to add more Recipes to the default config, as they would be public and viewable by users to cheat.

It is up to the Serveradmin to change and add Recipes, so players cannot cheat from the default config.

Some suggestions for recipes you could use:

g_vodka:

name: 'Rancid Vodka/&6Golden Vodka/&6Shimmering Golden Vodka'

ingredients:

- Potato/10

- Gold_Nugget/2

cookingtime: 18

distillruns: 3

age: 0

color: ORANGE

difficulty: 6

alcohol: 20

effects:

- WEAKNESS/28

- POISON/4

fire_whiskey:

name: Powdery Whiskey/Burning Whiskey/Blazing Whiskey

ingredients:

- Wheat/10

- Blaze_Powder/2

cookingtime: 12

distillruns: 3

distilltime: 55

wood: 4

age: 18

color: ORANGE

difficulty: 7

alcohol: 28

drinkmessage: 'You get a burning feeling in your mouth'

Without Alcohol:

hot_choc:

name: Hot Chocolate

ingredients:

- cookie/3

cookingtime: 2

color: DARK_RED

difficulty: 2

effects:

- FAST_DIGGING/40

iced_coffee:

name: Watery Coffee/Iced Coffee/Strong Iced Coffee

ingredients:

- cookie/8

- snowball/4

- milk_bucket/1

cookingtime: 1

color: BLACK

difficulty: 4

effects:

- REGENERATION/30

- SPEED/10

More Recipe ideas:

Dandelion Liquor

Beetroot Spirit,

Poppy Liquor: Macum/Grand Poppy,

Bamboo Liquor: Chu Yeh Ching,

Cachaca,

Cognac,

Sake,

Buorbon,

Moonshine,

Different Wines,

Brandy,

Amaretto,

etc. as well as variations like,

Pumpkin Spice Beer,

Melon Vodka

There are a lot of items in Minecraft like Vines and items added by plugins that would make great ingredients.

-- Plugin Compatibility --

Enable checking of other Plugins (if installed) for Barrel Permissions [true]

useWorldGuard: true useLWC: true useGriefPrevention: true useGMInventories: true

Enable the Logging of Barrel Inventories to LogBlock [true]

useLogBlock: true

-- MultiServer/BungeeCord --

If Brewery is running on multiple connected Servers (via BungeeCord)

a shared Database can be used here to synchronise drunkeness and to be able to use encoded brews between them.

multiServerDB:

If using the Database is enabled

enabled: false

If the drunkeness of players should be synchronised between Servers

syncDrunkeness: true host: localhost port: '3306' user: minec password: xyz database: base

-- Various Other Settings --

If items in Offhand should be added to the cauldron as well [false]

useOffhandForCauldron: false

If Barrel and Cauldron data can be loaded Async/in the Background [true]

loadDataAsync: true

-- Chat Distortion Settings --

If written Chat is distorted when the Player is Drunk, so that it looks like drunk writing

How much the chat is distorted depends on how drunk the Player is

Below are settings for what and how changes in chat occur

enableChatDistortion: true

Log to the Serverlog what the player actually wrote, before his words were altered [false]

logRealChat: false

Text after specified commands will be distorted when drunk (list) [- /gl]

distortCommands:

Distort the Text written on a Sign while drunk [false]

distortSignText: false

Enclose a Chat text with these Letters to bypass Chat Distortion (Use "," as Separator) (list) [- '[,]']

Chat Example: Hello i am drunk I am testing Brewery

distortBypass:

words: Words and letters that will be altered when chatting while being drunk.

Will be processed from first to last and a written sentece is altered in that order.

replace: Word or letter to be replaced. (Special: "-space": replaces space, "-random": insert into random position, "-all": everything, "-start": At Beginning, "-end": At the End.)

to: What to replace it with.

pre: Words and Letters before the wanted word (split with ",")

match: true = one of the "pre"-Words has to be before the wanted Word, false = none of the "pre" Words is allowed before the wanted Word

alcohol: 1-100 minimum drunkeness after which this word ist replaced

percentage: Probability of replacing a Word in percent

words:

mcgodbuild commented 4 years ago

try again with something like https://hastebin.com/ cause we cant see now if you made a spacing error. Also send in the error data from your console as it will usually tell what is causing the error.

craftish37 commented 4 years ago

Like that ? https://hastebin.com/raw/tumutizopu

mcgodbuild commented 4 years ago

### Loaded your config into a clean server to see any errors.

name: Whiskey poudreux/Whiskey b ... the name and ingredient tags both have 1 to little spaces. Theres 3 where they need 4 spaces

fire_whiskey: name: Whiskey poudreux/Whiskey brûlant/Whiskey bouillant ingredients:

### After changing that the config loaded but the following errors showed:

[Brewery] ERROR: Effect: NAUSEA does not exist! [Brewery] ERROR: Error adding Effect to Recipe: La bite et le couteau

[Brewery] ERROR: Effect: RESISTANCE does not exist! Brewery] ERROR: Error adding Effect to Recipe: La fiereté d'Ergail

[Brewery] ERROR: Effect: STRENGTH does not exist! Brewery] ERROR: Error adding Effect to Recipe: AyCool

[Brewery] ERROR: Effect: RESISTANCE does not exist! [Brewery] ERROR: Error adding Effect to Recipe: AyCool

[Brewery] ERROR: Effect: STRENGHT does not exist! [Brewery] ERROR: Error adding Effect to Recipe: Compensation des 5ans

[Brewery] ERROR: Effect: NAUSEA does not exist! [Brewery] ERROR: Error adding Effect to Recipe: Compensation des 5ans

[Brewery] ERROR: Effect: RESISTANCE does not exist! [Brewery] ERROR: Error adding Effect to Recipe: Compensation des 5ans

[Brewery] ERROR: Effect: SLOWNESS does not exist! [Brewery] ERROR: Error adding Effect to Recipe: Compensation des 5ans

[Brewery] ERROR: Effect: HASTE does not exist! Brewery] ERROR: Error adding Effect to Recipe: Chocolat chaud

Look better at adding the effects to these recipes and you should be good to go

craftish37 commented 4 years ago

Ok, I've uptated the effects name but I don't understand what is not good with the tags of the powdery whiskey, named whiskey poudreux 🤔

Sn0wStorm commented 4 years ago

You can see that the entries name and ingredients in that whiskey poudreux have different spacing as the other entries of it. You probably need to add another space before ‘name:’ and ‘ingredients:’

Sent with GitHawk

craftish37 commented 4 years ago

Thanks, it function :D Now, I'm going to create new alcohol, starting with a plutonium brew x)))

Have a nice day 👍