summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockOre.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ItemHandler initialisation is a constant expression (#5344)x12xx12x2021-12-021-1/+1
| | | | | * Transition to non-pointer item handler * That is my destructor - I decide when I leave this world * I declare your destruction private and you final
* added check for harvestation in oreblock handler (#5226)12xx122021-05-261-1/+7
|
* Do not fake a tool when converting to pickups (#5170)Tiger Wang2021-03-281-1/+1
| | | | | * When the cause of destruction was world-induced (CanBeAt check failed) there is no tool. Pass the nullptr directly to ConvertToPickups and let it handle it. * Fixes #4795 - Remove unused a_Digger parameter to ConvertToPickups.
* added check if the digger is a nullptr (#4981)12xx122020-10-091-0/+4
| | | Co-authored-by: 12xx12 <12xx12100@gmail.com>
* Merged OnBreak with OnPlayerBreak (#4967)12xx122020-10-081-13/+20
| | | | Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell102020-10-051-1/+13
| | | | | | | | | | | | | | | * Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Fortune Drops (#4932)KingCol132020-09-281-9/+13
| | | | | | | + Implemented and standardized all clamped discrete random drops. + Changed cItems Add from push_back to emplace_back. Implement fortune for crops. + Enabled hoes to be enchanted with efficiency, silk touch and fortune. Made leaves, gravel and crops affected by fortune. Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
* Unify block entity pickup conversionTiger Wang2020-09-251-1/+1
| | | | | - Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
* Limit fortune level, style fixesTiger Wang2020-09-231-12/+15
|
* Implement fortune for ores, glowstone and sea lanterns (#4897)KingCol132020-09-201-12/+11
| | | | | | | | | | | | | | | * Implemented fortune for ores, glowstone and sea lanterns (but nothing organic or flint). * Cleanup printf * Stopped playing golf, gave the Camels a FirstHump and moved the FortuneDropMult comment. Thanks for the review :). * Got rid of FortuneDropMult and replaced with Peter's massive optimization/simplification. * Fixed default lapis max droprate (8 -> 9). * Clamp max drops for non-redstone ores to 10. * Comment justifying the clamp.
* BlockHandler initialisation is a constant expression (#4891)Tiger Wang2020-09-201-8/+4
| | | | | | | | | | | | | * BlockHandler initialisation is a constant expression If we can't make it all namespaces, this is the next best I guess. + Tag handlers constexpr, const as needed + Inherit constructors * Privatise handler functions * More constexpr Co-authored-by: Alexander Harkness <me@bearbin.net>
* Fix silk-touching glowing redstone (#4893)KingCol132020-09-191-1/+6
| | | | | * Add src/BlocksRedstoneOre.h to CMakeLists.txt * Fixed silk touch pickaxe not dropping redstone ore (and dropping null item instead)
* Using Super.Mattes D2020-04-161-4/+5
|
* Refactored block-to-pickup conversion. (#4417)Mattes D2019-10-161-54/+41
|
* Experience orb (#4259)changyong guo2018-08-021-1/+1
| | | | | | | * Replace cWorld::FindClosesPlayer with cWorld::DoWithClosestPlayer * Implement experience reward splitting into the orb sizes used in vanilla * Modified speed calculation in cExpOrb::Tick to make the orbs fly towards the player Fixes #4216
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* cBlockHandler: take player by refpeterbell102017-08-011-3/+3
|
* FastRandom rewrite (#3754)peterbell102017-06-131-8/+8
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-2/+2
|
* Digging up a clay block spawns 4 clay items.jammet2015-04-231-0/+5
| | | | | Fixes #1884. Closes #1891.
* Nether Quartz is handled in the Ore handler.jammet2015-04-231-0/+5
| | | | Fixes #1885, Closes #1888
* Added experience drops when mining oresSTRWarrior2015-02-281-0/+59
|
* Fixed iron ore drop.Howaner2014-09-121-1/+2
|
* Code formatting fixes.Howaner2014-08-191-29/+11
|
* Moved source to srcAlexander Harkness2013-11-241-0/+80