1
0
cuberite-2a/Server/Plugins/APIDump/Classes
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
..
BlockArea.lua Add SetBlockMeta warning in documentation (#4943) 2020-10-01 11:38:10 +01:00
BlockEntities.lua Added missing return types and fixed param types (#4996) 2020-10-13 20:59:11 +00:00
Geometry.lua Use Vector3 for cLineBlockTracer and cBlockTracer (#4715) 2020-05-08 10:04:07 +01:00
Network.lua APIDump: Added missing syntax to cUrlClient (#3407) 2016-10-17 21:19:20 +02:00
Plugins.lua Plugin reload <plugin_name> feature (#4942) 2020-09-27 23:15:03 +01:00
Projectiles.lua Remove pkFishingFloat documentation (#4732) 2020-05-10 13:44:10 +03:00
RankManager.lua Add cUUID class (#3871) 2017-08-25 13:43:18 +01:00
WebAdmin.lua APIDoc: Corrected a few links 2017-04-07 21:26:59 +02:00
World.lua Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00