summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockOre.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-02ItemHandler initialisation is a constant expression (#5344)x12xx12x1-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
2021-05-26added check for harvestation in oreblock handler (#5226)12xx121-1/+7
2021-03-28Do not fake a tool when converting to pickups (#5170)Tiger Wang1-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.
2020-10-09added check if the digger is a nullptr (#4981)12xx121-0/+4
Co-authored-by: 12xx12 <12xx12100@gmail.com>
2020-10-08Merged OnBreak with OnPlayerBreak (#4967)12xx121-13/+20
Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-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>
2020-09-28Fortune Drops (#4932)KingCol131-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>
2020-09-25Unify block entity pickup conversionTiger Wang1-1/+1
- Removed normal BlockHandler knowledge of block entities during conversion + Added cBlockEntity::ConvertToPickups that handles it
2020-09-23Limit fortune level, style fixesTiger Wang1-12/+15
2020-09-20Implement fortune for ores, glowstone and sea lanterns (#4897)KingCol131-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.
2020-09-20BlockHandler initialisation is a constant expression (#4891)Tiger Wang1-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>
2020-09-19Fix silk-touching glowing redstone (#4893)KingCol131-1/+6
* Add src/BlocksRedstoneOre.h to CMakeLists.txt * Fixed silk touch pickaxe not dropping redstone ore (and dropping null item instead)
2020-04-16Using Super.Mattes D1-4/+5
2019-10-16Refactored block-to-pickup conversion. (#4417)Mattes D1-54/+41
2018-08-02Experience orb (#4259)changyong guo1-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
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-08-01cBlockHandler: take player by refpeterbell101-3/+3
2017-06-13FastRandom rewrite (#3754)peterbell101-8/+8
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-2/+2
2015-04-23Digging up a clay block spawns 4 clay items.jammet1-0/+5
Fixes #1884. Closes #1891.
2015-04-23Nether Quartz is handled in the Ore handler.jammet1-0/+5
Fixes #1885, Closes #1888
2015-02-28Added experience drops when mining oresSTRWarrior1-0/+59
2014-09-12Fixed iron ore drop.Howaner1-1/+2
2014-08-19Code formatting fixes.Howaner1-29/+11
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-80/+80
2012-11-26Fixed certain blocks crashing clients when minedluksor111@gmail.com1-1/+1
Fixed rail duplication glitch Fixed fall damage calculation Glass no longer drops glass git-svn-id: http://mc-server.googlecode.com/svn/trunk@1068 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-03Moved blockticking into blockhandler classes.madmaxoft@gmail.com1-4/+4
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-01Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com1-37/+59
( http://forum.mc-server.org/showthread.php?tid=434&pid=4734#pid4734 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@917 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-29Unified folder name-casingmadmaxoft@gmail.com1-0/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-06BLOCKTYPE signedness change - fixed more detailsmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@713 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-28Fixed a few gcc warningsmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@701 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Some code improvementslapayo94@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@677 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-07-16Fixed some small bugs :)lapayo94@gmail.com1-0/+58
git-svn-id: http://mc-server.googlecode.com/svn/trunk@672 0a769ca7-a7f5-676a-18bf-c427514a06d6