Mattes D
487f9a2aa9
Vector3 in Handlers ( #4680 )
...
Refactored all cBlockHandler and cItemHandler descendants to use Vector3.
2020-04-21 22:19:22 +02:00
Mattes D
26ac146f41
More Vector3 in cBlockHandler ( #4644 )
...
* cBlockHandler.OnUpdate uses Vector3 params.
Also slightly changed how block ticking works.
2020-04-17 10:36:37 +01:00
Peter Bell
96bd4637d7
Implement glowing redstone ore
2020-04-16 23:49:33 +01:00
GefaketHD
0712fd2d90
fixing rotation - rel. #4625
2020-04-11 19:00:05 +00:00
Alexander Harkness
0d72270186
Replace all single-digit hex constants with two-digit version
2020-04-10 13:07:16 +00:00
Alexander Harkness
db118af6ae
Remove silly empty cBlockGlazedTerracotta class
2020-04-10 13:07:16 +00:00
Alexander Harkness
f40aba941e
Add mixins for blocks that rotate based on player yaw at placement
...
Also add observer block handler.
2020-04-10 13:07:16 +00:00
Alexander Harkness
48ccd93426
Add Terracotta handlers
2020-04-10 13:07:16 +00:00
Alexander Harkness
cb21a4611d
Correct Black Glazed Terracotta block handler
2020-04-10 13:07:16 +00:00
Xenoxis
1e1f79b795
Updated Bookshelves drop behaviour ( #4567 )
...
* Updated BookShelves Drop Behaviour
As described here : https://minecraft.gamepedia.com/Bookshelf#Loot
* Update src/Blocks/BlockBookShelf.h
* Update CONTRIBUTORS
2020-03-28 12:20:14 +00:00
Xenoxis
ae4d387f1d
Fix Snow Spawn on Cobblestone Slab ( #4564 )
2020-03-27 23:37:32 +00:00
Mat
f5d24746d6
Jukebox improvements ( #4537 )
...
* Add jukebox block handler
Co-authored-by: peterbell10 <peterbell10@live.co.uk>
2020-03-23 13:45:09 +00:00
Mat
0718c44e77
Silk touch pickaxe drops grass block ( #4485 )
2020-03-17 02:23:50 +02:00
Mattes D
61904af626
Moved growing from cWorld / cChunk to cBlockHandler descendants.
2019-10-28 10:45:43 +01:00
Mattes D
221cc4ec5c
Refactored block-to-pickup conversion. ( #4417 )
2019-10-16 10:06:34 +02:00
Mattes D
8212f163b5
Register vanilla blocks in BlockTypeRegistry.
2019-08-05 21:42:54 +02:00
Zach DeCook
31a8d017d9
* Sponge: Add water absorbtion ( #4333 )
...
Closes #1411
2019-06-11 00:28:02 +01:00
Zach DeCook
24a8456f79
Create Ender Portal with Eyes of Ender ( #4126 )
...
The algorithm was designed so All portals must be facing the center, no matter which block had the eye inserted in last.
Note: Still need to create a block entity so that portals don't become invisible when you relog.
Addresses part of #3445
Fixes #3695
2019-05-11 20:43:26 +01:00
Rick van Schijndel
a1e52cb6d6
Fixes bed item 26 and 355 being spawned, only 355 spawns now ( #4290 )
2018-08-23 16:28:41 +01:00
peterbell10
950aeffff8
CheckBasicStyle: Check number of empty lines between functions ( #4267 )
...
Add check for number of empty lines between functions and fix the corresponding failures
2018-07-26 22:24:36 +01:00
Zach DeCook
68fc28857f
Concrete mixing ( #4096 )
...
Adds a block handler for concrete powder and implements hardening to concrete.
Concrete powder turns into concrete when:
* It is next to water when it receives a block update
* It falls onto a water block (even with Physics SandInstantFall=1)
2018-01-03 16:33:31 +00:00
Bond-009
5badb9bcca
cChunkInterface GetBlock, GetBlockMeta, GetBlockTypeMeta use vectors ( #4050 )
2017-11-20 11:13:11 +00:00
Bond-009
491e91dc88
Leaves now drop with the correct meta when broken by a pickaxe with silk touch ( #4034 )
2017-09-19 09:44:21 +01:00
Bond-009
00d077de1b
Drop enderchest when broken by a silk touck pick ( #3986 )
2017-08-31 17:50:07 +02:00
Lane Kolbly
87c89a1727
Bed piston fix ( #3956 )
...
* Threaded world interface into ConvertBlockToPickups
* Changed how cBlockPiston::PushBlocks sets the old block to air, so that the block exists for the DropBlock call.
* Removed unused a_Digger argument.
* Removed incorrect comment
* This time actually removed a_Digger references.
2017-08-25 10:56:01 +01:00
Lane Kolbly
7bdbfad1bb
Changed int parameters to vector parameters in cCuboid and simulators ( #3874 )
2017-08-17 15:48:38 +02:00
peterbell10
0d0323608d
cBlockHandler: take player by ref
2017-08-01 08:21:20 +02:00
Lane Kolbly
5402b214b3
Check for intersection between placed blocks and entities. ( #3850 )
...
* Check for intersection between placed blocks and entities.
+ Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks.
* Factored block-entity placement checking into another function in cPlayer.
- Removed vector min/max functions
* Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity.
+ Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-28 17:59:21 +01:00
Lane Kolbly
93e1690253
Made cBlockHandler OnPlacedByPlayer call OnPlaced, made BlockRailHandler use NeighborChanged instead of OnNeighborChanged.
2017-07-18 15:12:55 +02:00
peterbell10
bbf5bec817
BigFlower fixes ( #3826 )
...
* BigFlowers fixes
* Correct upper part meta
* Documented parameters to DoesIgnoreBuildCollision
2017-07-07 16:37:53 +02:00
Lukas Pioch
885d828712
Added bed entity ( #3823 )
...
* Added bed entity
* Export cBedEntity to lua
* Set color of bed through item damage value
* Added bed entity to APIDoc
* NBT: Added loading and saving
* Crafting recipes for the colored beds
2017-07-07 09:31:45 +02:00
peterbell10
360d8eade0
FastRandom rewrite ( #3754 )
2017-06-13 21:35:30 +02:00
Mattes D
ed1b78bcb6
BlockHandlers: vertical alignment.
2017-05-09 11:13:44 +02:00
Mattes D
473a4ae226
BlockCrops: Fixed RipeMeta off-by-one error properly.
...
Ref.: #3691
2017-05-09 11:11:06 +02:00
Bond-009
ef85c2e686
Deadbushes drop sticks
2017-03-19 21:57:41 +01:00
mathiascode
4311f4a658
Added some blocks and items ( #3503 )
2017-02-14 11:13:55 +01:00
LogicParrot
ca6ef58b1e
Bulk clearing of whitespace
2016-02-05 23:50:18 +02:00
Mathias
8e2b2e7a18
More blocks that can't be mined with silktouch
2016-01-03 16:27:02 +02:00
Gargaj
66e6589883
blockheight mechanism
2015-12-13 15:16:15 +01:00
bibo38
d92a92d78a
Implemented the slime block dropping behaviour.
...
Fixes #2530
2015-11-07 17:23:02 +01:00
Samuel Barney
cc83c4641d
* Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.
...
* Blocks now have an effect upon plant growth, just like in vanilla.
2015-08-19 10:48:21 -06:00
Tiger Wang
8656e149c8
Improved maps
2015-07-14 21:46:30 +01:00
Mattes D
66a164a9a7
Added neighbor specification in the OnNeighborChanged() block callback.
...
Fixes the OnNeighborChanged endless recursion with large melon / pumpkin fields.
Fixes #2213 .
2015-07-01 10:40:16 +02:00
Samuel Barney
e70e2b8ecc
Rebased version of Code
2015-06-22 11:29:38 -06:00
Mattes D
8df31067d4
Externalized cPrefabPiecePool self-test.
2015-06-19 16:15:59 +02:00
jammet
6e3c584f07
Clay blocks are handled with the OreHandler
2015-04-29 10:14:34 +02:00
Mattes D
ffe7dae4fc
Fixed PolishedGranite et al crafting recipes.
...
Fixes #1774 . Ref.: #1859
2015-04-16 20:59:57 +02:00
Mattes D
ccdf03daaf
Refactored all player block placing to go through hooks.
...
Fixes #1618 .
2014-12-24 07:20:17 +01:00
Howaner
8e753fa590
Added cocoa pod.
2014-12-01 18:10:37 +01:00
Tiger Wang
a26541a7c3
En masse NULL -> nullptr replace
2014-10-22 20:12:49 -07:00