1
0
Fork 0
cuberite-2a/Server/Plugins
0ddlyoko 672bb04570
Add correct implementation of crops (#4802)
* [FIX] Add correct implementation of seed drops.

> Official percentage of drops has been implemented

* Fix C++ conventions

* Change "Vals" variable to "m_Vals"

* [FIX] Add correct implementation of Carrots, Potatoes, Wheat & Beetroots seed

* Add Fortune support with crops

Add fortune support with Wheat, Carrots, Potatoes & Beetroots seeds

* [FIX] Right-clicking on a grown Beetroot in survival consume 2 bone meals

Fix #4805

* Add documentation for "cWorld::IsFullGrownPlantAt" method

* Fix dispenser that full grown a plant

> Change methods cItemDyeHandler::FertilizePlant & cItemDyeHandler::growPlantsAround to static

* Display particle even if tree doesn't grow

* When right-clicking on a full grown melon / pumpkin seed, no longer produce a melon / pumpkin

Before this commit, when you right-click on a melon or a pumpkin seed, a melon / pumpkin block spawned.
With this commit, it no longer spawns

* [FIX] Do not create melon / pumpkin block when right-clicking with a bone meal

This fix will prevent the creation of a melon / pumpkin block when you right-click with a bone meal on a melon / pumpkin plant
- It just detect if the plant is full grown. if yes, the method "Grow" is not called

- Remove IsFullGrownPlant

Co-authored-by: 12xx12 <12xx12100@gmail.com>
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-11-06 16:54:01 +00:00
..
APIDump Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00
ChatLog@cc04da381b Updated plugins with the rename to Cuberite. 2016-01-01 21:40:18 +01:00
Core@5dbe68f36d Update Core 2020-08-05 20:56:10 +03:00
Debuggers Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
DumpInfo Updated DumpInfo plugin 2015-11-29 17:28:02 +01:00
HookNotify Renamed leftover strings to Cuberite / Server, as needed. 2016-01-01 21:05:09 +01:00
NetworkTest Renamed leftover strings to Cuberite / Server, as needed. 2016-01-01 21:05:09 +01:00
ProtectionAreas@5cc1171bb1 Update ProtectionAreas 2020-02-27 19:45:38 +02:00
TestLuaRocks Update TestLuaRocks.lua (#3903) 2017-08-13 12:29:24 +01:00
.gitignore Update .gitignore; new files added to APIDump are no longer ignored 2020-03-23 12:37:11 +00:00
InfoDump.lua Minor changes (#3909) 2017-08-24 11:19:40 +02:00
InfoReg.lua Corrected check for level of subcommand and fixed multiple levels not working (#3758) 2017-06-12 12:59:46 +02:00