summaryrefslogtreecommitdiffstats
path: root/Server/crafting.txt (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-14Introduce recipe book functionality (#4493)Tobias Wilken1-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>
2018-01-06Golden Apple Fixes (#4130)Alexander Harkness1-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
2017-07-07Added bed entity (#3823)Lukas Pioch1-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
2017-06-30Added 1.12 blocks (#3760)Bond-0091-0/+18
2016-12-30Added 1.11 blocks, items and recipes (#3500)mathiascode1-0/+263
2016-11-12Added blocks and crafting recipesMathias1-6/+8
2016-09-07remove hopper from dropper's recipe (#3374)hangyas1-1/+1
2016-08-10Fixed NetherBrick recipes (#3306)jammet1-4/+4
Again.
2016-05-20Some 1.9 Crafting Recipes and Items. (#3199)Alexander Harkness1-139/+155
2016-05-15Added "Chissled Stone Bricks" recipe (#3192)LogicParrot1-0/+1
2016-03-14Fixed melon block recipeMathias1-1/+1
2016-01-17Alphabetically sorted configuration filesLogicParrot1-253/+253
2016-01-17Update crafting.txtjammet1-0/+1
Added Mossy Cobblestone recipe
2015-12-26fix crafting recipe for snow layersGargaj1-1/+1
2015-12-22Added 1.7 item namesMathias1-1/+1
2015-12-12Fixed a few crafting recipesMathias1-15/+19
2015-11-23add Golden CarrotGargaj1-0/+1
Yay!
2015-09-05Renamed output directory to ServerMattes D1-0/+0
2015-07-26Update crafting.txtjammet1-1/+1
Corrected red carpet recipe.
2015-07-19Update crafting.txtjammet1-2/+2
Corrected Pillar of Quartz and Chiseled Quartz.
2015-07-19Update crafting.txtjammet1-1/+1
Corrected QuartzBlock recipe
2015-07-15Leather Armor can now be dyed.Samuel Barney1-0/+38
* Created new color class to handle dye-related coloring
2015-06-16Update crafting.txtjammet1-0/+2
Some more block types you can create by mixing others.
2015-06-16Update crafting.txtjammet1-0/+1
You can make Andesite by combining Diorite and Cobblestone in Vanilla. The recipe was missing.
2015-05-31Update crafting.txtjammet1-6/+1
2015-05-31Fix Daylightsensor recipejammet1-1/+6
Something like Woodslap^-1 didn't work here, so I split it up into individual recipes.
2015-05-26Corrected Cookie recipejammet1-1/+1
You should get a batch of 8 cookies for 2 wheat and one cocoabean.
2015-05-08Corrected hopper recipejammet1-1/+1
2015-05-03Crafting - Allow to craft torches with charcoalsLukas Pioch1-1/+1
2015-04-20Fixed a bad recipe.Mattes D1-1/+1
2015-04-20Fixing dyeingjammet1-1/+1
Getting yellow dye and a lot of dye mixes were not working when it was just called "Flower".
2015-04-19Add StainedClayjammet1-0/+19
For some reason StainedClay was entirely missing, so here it is.
2015-04-16Recipes match zero DamageValue strictly.Mattes D1-53/+56
To match any DamageValue for the ingredient, an explicit "-1" as the DamageValue must be specified. Fixes #1859.
2015-04-16Fixed PolishedGranite et al crafting recipes.Mattes D1-3/+3
Fixes #1774. Ref.: #1859
2014-12-14Fixed fence/-gates and door recipes and added baked potato recipeMasy981-3/+3
2014-11-29Removed duplicate.M103601-1/+0
2014-09-12Added slime block to slime balls recipeMasy981-0/+1
2014-09-10Fixed spacingMasy981-1/+1
2014-09-10Fixed sign recipeMasy981-1/+1
2014-09-02Fixed typo!Masy981-1/+1
2014-09-02Added missing recipes!Masy981-6/+21
2014-09-02Added new recipes!Masy981-4/+19
2014-09-02Seperated "custom" names list from the normal list in items.ini!Masy981-2/+2
2014-09-01Added missing leather recipe!Masy981-0/+1
2014-09-01Fixed spacing and light gray wool name!Masy981-38/+38
2014-08-31Added missing mossy stonebrick recipe!Masy981-0/+1
2014-08-31Added 1.8 recipes!Masy981-4/+62
2014-08-29Hotfixed recipe.txt loading.Hownaer1-1/+1
2014-08-21Added missing recipes for stairs and slabs!Masy981-4/+4
2014-08-21Added missing recipes for stairs and slabs!Masy981-12/+30
2014-03-09Added extra dye rules to crafting.txtTiger Wang1-1/+8
2014-02-27Implemented ballistic missiles (fireworks)Tiger Wang1-3/+46
+ Added fireworks
2014-02-14EmptyMap item handlerandrew1-1/+1
2013-11-13Update crafting.txt with StainedGlass and StainedGlassPanenesco1-2/+38
2013-10-14Add the first line back.Alexander Harkness1-0/+1
2013-10-14Stairs crafting fixestonibm191-1/+4
Fixes #233 Added Stone Brick Stairs crafting recipe and added alternative crafting recipes for Nether Brick Stairs and Quartz Stairs
2013-08-13Recipe Updatestonibm191-3/+10
Added almost all 1.6 recipes
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-392/+392
2013-06-30Changed the crafting recipe for book to match vanilla since 1.3.1 (fix contributed by mgueydan)madmaxoft@gmail.com1-1/+1
Fixes FS #404 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1634 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-24ActivatorRail is craftable (Patch by tonibm19) nielsbreu@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1625 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-24Fixed piston crafting and redstone blocks can be crafted. (Patch by tonibm19)nielsbreu@gmail.com1-1/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1623 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-01Added missing crafting recipes.nielsbreu@gmail.com1-1/+4
Quartz Slabs, Chiseled Quartz Block and Pillar Quartz Block git-svn-id: http://mc-server.googlecode.com/svn/trunk@1343 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-15Block and recipe update by STR_Warrior.madmaxoft1-3/+13
Adds missing fuels Adds missing furnace recipes (FS #304) Fixes some recipes (FS #305) Adds current 1.5 weekly snapshot blocks and items. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1215 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-22Added Netherbrick slab (patch contributed by STR_Warrior)madmaxoft@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1098 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-27Added initial adventure mode supportluksor111@gmail.com1-0/+1
Added missing Emerald crafting recipe You get more fall damage when jumping Torch no longer protects players from fall damage Fixed Ender Chest drops git-svn-id: http://mc-server.googlecode.com/svn/trunk@1070 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-20Recipe update by STR_Warriormadmaxoft@gmail.com1-2/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1056 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-17Updated crafting and items to 1.4.4 (initial patch by STR_Warrior)madmaxoft@gmail.com1-1/+7
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1051 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Fixed axe crafting (cannot use asterisk)madmaxoft@gmail.com1-5/+10
git-svn-id: http://mc-server.googlecode.com/svn/trunk@907 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Crafting recipes for 1.3.2 (patch submitted by STR_Warrior)madmaxoft@gmail.com1-20/+25
git-svn-id: http://mc-server.googlecode.com/svn/trunk@903 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-20Moved files used by MCServer to a special MCServer folderfaketruth1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@763 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-05Fixed previous commit's recipes and items.madmaxoft@gmail.com1-6/+6
git-svn-id: http://mc-server.googlecode.com/svn/trunk@557 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-05Added crafting recipes and items, courtesy of Taugeshtumadmaxoft@gmail.com1-11/+251
git-svn-id: http://mc-server.googlecode.com/svn/trunk@556 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-04Added specific wood types, modified recipes accordinglymadmaxoft@gmail.com1-9/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@555 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-04Added the new recipe parser, parsing the crafting.txt file. Included are a few recipes. The old parser still works, but will be replaced soon.madmaxoft@gmail.com1-0/+117
git-svn-id: http://mc-server.googlecode.com/svn/trunk@549 0a769ca7-a7f5-676a-18bf-c427514a06d6