summaryrefslogtreecommitdiffstats
path: root/Server/crafting.txt (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add coloured glass pane recipes (#5032)Derek Qu2020-11-151-0/+17
| | | + Add coloured glass pane recipes using uncolored glass panes
* Added recipe for the observer. (#4880)KingCol132020-09-171-0/+2
| | | | | | | * Added recipe for the observer. * Forgot mirrored recipe. Co-authored-by: Alexander Harkness <me@bearbin.net>
* Introduce recipe book functionality (#4493)Tobias Wilken2020-07-141-387/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduce recipe book functionality The recipe book helps especially new players. Missing it gives the impression that cuberite is not as advanced as it is. The handling of the recipe book uses the following functions: - Unlock Recipes (https://wiki.vg/index.php?title=Protocol&oldid=14204#Unlock_Recipes) to make recipes available and show the notification for new recipes. Initialization is done on player login for known ones, the update is done when new items are discovered. - Craft Recipe Request (https://wiki.vg/index.php?title=Protocol&oldid=14204#Craft_Recipe_Request) when the user selects a recipe from the recipe book to fill the slots. Known recipes are initialized on player login via `Unlock Recipes` with `Action` 0. As soon as a new recipe is discovered this is added via `Unlock Recipes` with `Action` 1. To be able to know and recognize new recipes the player class is extended with `KnownItems` and `KnownRecipes`. As soon as a player touches an item this is compared to the list of `KnownItems`, if the item is unknown the recipes are checked for this item and the other ingredients are checked with the list of `KnownItems`. If a full match is discovered the recipe is unlocked with the client and stored in the `KnownRecipes`. To unlock recipes the recipe ID is sent to the client. A mapping file (for protocol 1.12.2) translated the minecraft recipe names to ids. The crafting.txt is extended with and minecraft recipe names is possible. Limitations: Only a single recipe is added to the crafting area. Multiple clicks or shift click does not increase the number of builds. Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Address first issues mentioned by @peterbell10 - Some linting - Extract loading of recipe specific protocol mapping into a function - Build `RecipeNameMap` only once - Use `std::optional` - Extract `LoadRecipe` from `Window` * Start to implement new suggestions * Update with suggestions from @peterbell10 * Some minor cleanup * Update protocol packet IDs * Remove unused include * Include header in cmake * Change a vector to integer counter * Change dromedaryCase method names to PascalCase * Address suggestions from @madmaxoft * Read Protocol subdirectories to load recipe books To load all recipebooks iterate over the `Protocol` subdirectories to find mapping files. Co-authored-by: peterbell10 <peterbell10@live.co.uk>
* Golden Apple Fixes (#4130)Alexander Harkness2018-01-061-3/+2
| | | | | | | | | * Do not remove food item until player has been fed * Golden apples now ignore hunger when eating * Removed EnchantedGoldenApple recipe, as it was removed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2 * Adjust golden apple effects, as they were changed in 1.9 Reference: https://minecraft.gamepedia.com/1.9#Items_2
* Added bed entity (#3823)Lukas Pioch2017-07-071-1/+21
| | | | | | | | | | * Added bed entity * Export cBedEntity to lua * Set color of bed through item damage value * Added bed entity to APIDoc * NBT: Added loading and saving * Crafting recipes for the colored beds
* Added 1.12 blocks (#3760)Bond-0092017-06-301-0/+18
|
* Added 1.11 blocks, items and recipes (#3500)mathiascode2016-12-301-0/+263
|
* Added blocks and crafting recipesMathias2016-11-121-6/+8
|
* remove hopper from dropper's recipe (#3374)hangyas2016-09-071-1/+1
|
* Fixed NetherBrick recipes (#3306)jammet2016-08-101-4/+4
| | | Again.
* Some 1.9 Crafting Recipes and Items. (#3199)Alexander Harkness2016-05-201-139/+155
|
* Added "Chissled Stone Bricks" recipe (#3192)LogicParrot2016-05-151-0/+1
|
* Fixed melon block recipeMathias2016-03-141-1/+1
|
* Alphabetically sorted configuration filesLogicParrot2016-01-171-253/+253
|
* Update crafting.txtjammet2016-01-171-0/+1
| | | Added Mossy Cobblestone recipe
* fix crafting recipe for snow layersGargaj2015-12-261-1/+1
|
* Added 1.7 item namesMathias2015-12-221-1/+1
|
* Fixed a few crafting recipesMathias2015-12-121-15/+19
|
* add Golden CarrotGargaj2015-11-231-0/+1
| | | Yay!
* Renamed output directory to ServerMattes D2015-09-051-0/+645