Medieval Cookery Guide
0
Medieval Cookery User Guide
What is Medieval Cookery?
Medieval Cookery is a Spigot plugin that adds craftable medieval-themed food items to Minecraft. Each food is a custom player-head item with its own texture, crafted at the standard crafting table from a shaped recipe defined in recipes.yml.
Installation
The plugin runs on Spigot (or a fork such as Paper) 1.18.1 or newer. An older server refuses to load it with an "unsupported API version" message. The versions every release is tested on are listed under Supported Minecraft Versions in the README.
- Download the latest
Medieval-Cookery-<version>.jarfrom the Releases page. - Place the JAR in your server's
plugins/folder. - Restart the server.
On the first startup a default recipes.yml is written to plugins/MedievalCookery/. Edit that file to change or add recipes, then restart the server for the changes to take effect. See CONFIG.md for the full field reference.
Craftable Foods
All recipes use the standard 3×3 crafting table. In the patterns below, each row is one row of the grid and a . marks a slot that must be left empty. The . is a reading aid only — inside recipes.yml an empty slot is written as a space.
| Food | Pattern | Ingredients |
|---|---|---|
| Salmon Roll | KWK / WRW / KWK | K = Dried Kelp, W = Wheat, R = Salmon |
| Beet Salad | BBB / GGG / .W. | B = Beetroot, G = Short Grass (called Grass before Minecraft 1.20.3), W = Bowl |
| Bowl of Rice | WWW / WWW / .B. | W = Wheat, B = Bowl |
| Steak Sandwich | .B. / .S. / .B. | B = Bread, S = Cooked Beef |
| Salted Herring | .B. / BCB / .B. | B = Bone Meal, C = Cod |
Eating a Food
Hold the food in either hand and right-click. As with a vanilla food, a food in your off hand is eaten when the item in your main hand has no use for the click — an empty hand, a sword, a block clicked into the air — and with a food in both hands the one in your main hand is eaten. The foods are player heads, which vanilla Minecraft does not treat as edible, so the plugin handles the right-click itself: instead of placing the head as a block, it starts a meal.
- Eating takes 32 ticks — about 1.6 seconds — the same as a vanilla food, with the eating sound playing throughout.
- One food is then taken from the hand you ate it from, a Saturation effect is applied for the number of ticks the recipe's
hungerDecreasesets, and a message confirms the meal. - If the recipe sets an
afterEatItem, that item is added to your inventory, or dropped at your feet if your inventory has no room for it. Beet Salad and Bowl of Rice return the Bowl used to craft them. - Moving the food out of that hand before the meal finishes cancels it, and so does swapping it to your other hand. No food is consumed and no effect is applied in that case.
- Logging out before the meal finishes cancels it in the same way, and so does dying. With keepInventory on, the food is still in your hand when you respawn.
- A meal only starts when your hunger bar is not full, as with a vanilla food. With a full hunger bar the right-click does nothing and the food is kept. In creative mode a meal starts regardless. In spectator mode a meal never starts, as a spectator cannot use a vanilla food either.
- In creative mode the food stays in your hand and no
afterEatItemis given, as with a vanilla food; the Saturation effect and the message still apply. - Right-clicking again while already eating does nothing; one meal has to finish before the next begins.
- Right-clicking a block that has its own use — a chest, a door, a crafting table — opens that block instead of starting a meal, exactly as carrying a vanilla food does. Sneak while you right-click to eat in front of one. A block that only reacts to particular items, such as a fence, a pumpkin, a cauldron or a candle, does not stop a meal, and nor does an iron door or iron trapdoor, which only redstone opens. Nor does a respawn anchor with no charge, a sweet berry bush with no ripe berries, or cave vines with no glow berries; once charged or ripe they keep the click. Redstone dust running in a line, a corner or a T does not stop a meal either; a single dot or a four-way cross of dust keeps the click, because right-clicking toggles it between those two shapes. A bell stops a meal only where right-clicking it would ring it: a floor bell from its front or back, a wall bell from the sides it swings to, and a ceiling bell from any side, all below the top of its block. A chiseled bookshelf stops a meal only when its front, where the books sit, is right-clicked. A command, structure or jigsaw block stops a meal only for an operator in creative mode, who is the only player it opens for. The exception is a mob on your lead: right-clicking a fence ties it up, and no meal starts.
- A food cannot be placed as a block, from either hand.
- Where another plugin blocks the right-click — a protected region, a lobby, a jail — no meal starts and the food is kept, just as a vanilla food cannot be eaten there.
Known Limitations
A food crafted before foods were tagged with their recipe is recognised by its display name together with its skin. Such a food renamed in an anvil can no longer be eaten, and one whose recipe has no textureBase64 cannot be eaten at all, since it cannot be told apart from an ordinary player head given the same name. Foods crafted since then are recognised by their tag, so they can be renamed freely, and a player head renamed after a recipe is not a food.
Support
Open a GitHub issue to report bugs or request features.