1
0
Fork 0
cuberite-2a/src/BlockEntities
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
..
BeaconEntity.cpp Beacon now checks for players in surrounding square (#4972) 2020-10-09 19:19:22 +00:00
BeaconEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
BedEntity.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
BedEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
BlockEntity.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
BlockEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
BlockEntityWithItems.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
BlockEntityWithItems.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
BrewingstandEntity.cpp Remove SetProperty(...cPlayer) 2020-10-03 16:54:14 +01:00
BrewingstandEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
CMakeLists.txt Added end portal and enchanting table block entities 2020-09-20 01:40:20 +01:00
ChestEntity.cpp Add more statistic tracking (#4837) 2020-09-05 16:13:44 +01:00
ChestEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
CommandBlockEntity.cpp Streamline startup sequence 2020-09-05 13:16:52 +01:00
CommandBlockEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
DispenserEntity.cpp Add correct implementation of crops (#4802) 2020-11-06 16:54:01 +00:00
DispenserEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
DropSpenserEntity.cpp Limit fortune level, style fixes 2020-09-23 14:34:15 +01:00
DropSpenserEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
DropperEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
DropperEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
EnchantingTableEntity.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
EnchantingTableEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
EndPortalEntity.cpp Added end portal and enchanting table block entities 2020-09-20 01:40:20 +01:00
EndPortalEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
EnderChestEntity.cpp Add more statistic tracking (#4837) 2020-09-05 16:13:44 +01:00
EnderChestEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
FlowerPotEntity.cpp Add more statistic tracking (#4837) 2020-09-05 16:13:44 +01:00
FlowerPotEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
FurnaceEntity.cpp Remove SetProperty(...cPlayer) 2020-10-03 16:54:14 +01:00
FurnaceEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
HopperEntity.cpp Implement Dropspenser Hook (#4903) 2020-09-21 15:31:45 +00:00
HopperEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
JukeboxEntity.cpp Do not call into things we don't own in destructors 2020-09-25 14:51:16 +01:00
JukeboxEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
MobHeadEntity.cpp Unify block entity pickup conversion 2020-09-25 09:07:01 +00:00
MobHeadEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
MobSpawnerEntity.cpp Adding more customize options to mob spawners and improving the way to look for surrounding entities (#4955) 2020-10-10 19:31:44 +00:00
MobSpawnerEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
NoteEntity.cpp Add more statistic tracking (#4837) 2020-09-05 16:13:44 +01:00
NoteEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00
SignEntity.cpp Using Super. 2020-04-16 20:07:48 +00:00
SignEntity.h Remove BLOCKENTITY_PROTODEF 2020-10-24 18:49:38 +01:00