summaryrefslogtreecommitdiffstats
path: root/source/Blocks (follow)
Commit message (Collapse)AuthorAgeFilesLines
* changed the subtaraction to a flipworktycho2013-09-111-3/+3
|
* Pumpkin and JackOLantern supportTiger Wang2013-09-102-0/+65
| | | | Fixes #99
* Fixed inconsistent meta namingTiger Wang2013-09-031-51/+51
|
* Merge remote-tracking branch 'upstream/master'Tiger Wang2013-09-024-70/+91
|\ | | | | | | | | | | | | | | Conflicts: source/Bindings.cpp source/Entities/Entity.cpp Updated from upsteam
| * Merging in tigerw's changes from PR #118madmaxoft2013-08-255-16/+145
| |\
* | | Implemented xoft's suggestions [SEE DESC]Tiger Wang2013-08-291-82/+51
| |/ |/| | | | | | | | | Rail metas are now in BlockID and exported to LUA Minecart now does a SetMass, instead of m_Mass Minecarts use SubType instead of TypeType
* | Fixed iron door opening by handTiger Wang2013-08-251-1/+4
| |
* | Vines now spread when updatedTiger Wang2013-08-241-0/+7
| |
* | Added comments and fixed a bugTiger Wang2013-08-241-39/+37
| | | | | | | | Bug was placing slabs between slabs not making a double slab.
* | Fixed incorrect double slab dropsTiger Wang2013-08-231-2/+9
| |
* | Double slabs work *choke choke*Tiger Wang2013-08-233-12/+87
| |
* | Changed comments to be more accurateTiger Wang2013-08-211-4/+4
| |
* | Fixed longstanding issue with slabsTiger Wang2013-08-211-1/+12
| | | | | | | | Fixes FS#298
* | Fixed broken carpet handler [SEE DESC]Tiger Wang2013-08-202-3/+10
|/ | | | | | Made BlockHandler pass on control to carpet handler Declared thinggummies in carpet handler Fixed carpet block pushback using incorrect format
* Activator rail now uses rail handlerTiger Wang2013-08-201-0/+1
|
* Moved entities into the Entities subfolder.madmaxoft2013-08-1910-10/+9
|
* Buncha bugfixes [SEE DESC]Tiger Wang2013-08-142-1/+7
| | | | | | | Fixed generation values not being written Fixed piston being able to push water Fixed ice creating a non-source block (still doesn't update though) Removed problematic piston code
* Removed more commentsTiger Wang2013-08-131-1/+0
|
* Added quartz stairs.STRWarrior2013-08-121-0/+1
|
* Really removed comments this timeTiger Wang2013-08-111-7/+0
|
* Removed unneeded case clauseTiger Wang2013-08-111-15/+12
|
* Tried adding bracketTiger Wang2013-08-111-1/+1
|
* Further attempt at fixing torch placementsTiger Wang2013-08-112-10/+10
| | | | Also fixed block on flower placement. #71
* Attempt at fixing torch placementTiger Wang2013-08-101-3/+5
| | | Attempt at fixing #71 and placement of torches.
* Piston head, when removed, removes the associated piston body, too.madmaxoft2013-08-103-1/+50
| | | | Fixes FS 388
* Added OnExploding() and OnExploded() hooks.madmaxoft2013-08-091-3/+6
| | | | | | | | As requested in FS 413, with extra parameters: World, BlockX, BlockY, BlockZ, Size, CanCauseFire, Source, SourceData OnExploding() can return 3 values: StopHook, CanCauseFire, ExplosionSize
* Added the Carpet block.madmaxoft2013-08-054-44/+102
|
* Added the "Edit Sign" packet sent to the client placing a sign.madmaxoft2013-07-291-0/+11
| | | | Fixes issue #20. The 1.6.2 client wouldn't open the sign editor UI unless it receives a special packet
* Changed everyting to Unix line endings.Alexander Harkness2013-07-2961-4966/+4966
|
* TNT fixes.madmaxoft@gmail.com2013-06-182-40/+0
| | | | | | | | | Other blocks can be placed next to TNT. Explosions activate nearby TNT blocks. TNT doesn't destroy bedrock, obsidian and liquid blocks. Server doesn't crash when a TNT (or other entity) leaves the valid Y range. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1603 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed compilation on linux.nielsbreu@gmail.com2013-06-151-1/+1
| | | | | | Any idea why SendMessageA works on Windows and not on linux? git-svn-id: http://mc-server.googlecode.com/svn/trunk@1595 0a769ca7-a7f5-676a-18bf-c427514a06d6
* You can only sleep when the time is day, and beds explode if the dimension is not Overworld.nielsbreu@gmail.com2013-06-151-11/+21
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1592 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented the Hopper block handlermadmaxoft@gmail.com2013-06-122-2/+50
| | | | | | Hoppers can be placed properly, but won't work yet. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1583 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed 2 more tabs...faketruth2013-06-091-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1571 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Converted spaces to tabsfaketruth2013-06-091-21/+21
| | | | | | Dead bush does not drop pickups when invalidly placed git-svn-id: http://mc-server.googlecode.com/svn/trunk@1570 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dead bush block handler so a dead bush pickup is dropped when the sand underneath it is removed.faketruth2013-06-092-0/+49
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1569 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed cLadder, cSign, cStairs, cTorch and cVine classes, moved their functionality into the appropriate BlockHandlers / ItemHandlersmadmaxoft@gmail.com2013-06-048-30/+186
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1555 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented droppersmadmaxoft@gmail.com2013-05-262-9/+9
| | | | | | Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored cInventory to use cItemGrid for the actual Storagemadmaxoft@gmail.com2013-05-242-8/+5
| | | | | | This makes the API more orthogonal and is easier to use in the plugins. Also changes in the inventory are now propagated to the needed places (armor updates to BroadcastEntityEquipment etc.) even when the inventory is changed by a plugin. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1503 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Stairs placement fix (patch contributed by Simi)madmaxoft@gmail.com2013-05-201-1/+1
| | | | | | http://forum.mc-server.org/showthread.php?tid=503&pid=8159#pid8159 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1497 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few out-of-bounds readsmadmaxoft@gmail.com2013-05-091-4/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1465 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a few possible crashes with out-of-bounds Y coordsmadmaxoft@gmail.com2013-04-271-1/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1413 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Initial implementation of explosions and TNT blockkeyboard.osh@gmail.com2013-04-182-0/+40
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1392 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cobwebs are now washed away by water and can be broken by swords and shears, giving string.madmaxoft@gmail.com2013-04-062-0/+32
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1363 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added carrots and potatoes handling, bonemealing and proper lighting.madmaxoft@gmail.com2013-04-052-4/+57
| | | | | | FS #166 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1359 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed crops producing pickups for creative mode players.madmaxoft@gmail.com2013-04-031-8/+4
| | | | | | FS #350 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1356 0a769ca7-a7f5-676a-18bf-c427514a06d6
* BlockArea: Finished rotation and mirroring with meta. Implemented example meta handling for vines, stairs and torches.madmaxoft@gmail.com2013-03-264-1/+174
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1319 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Huge performance boost in blockhandlers, they have direct access to chunk data when blockchecking.madmaxoft@gmail.com2013-03-1519-166/+344
| | | | | | Also fixed vines' placement. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1278 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickups are now being saved into Anvil.madmaxoft@gmail.com2013-03-095-8/+13
| | | | | | Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Simulators now have direct access to the cChunk object in the WakeUp() callmadmaxoft@gmail.com2013-02-281-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1227 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com2013-02-169-23/+23
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com2013-01-273-5/+11
| | | | | | Note that cItems is used in the function signature but not yet exported in the API, TODO! git-svn-id: http://mc-server.googlecode.com/svn/trunk@1176 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed piston placement.madmaxoft@gmail.com2013-01-201-1/+1
| | | | | | FS #293 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1160 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com2013-01-1228-455/+633
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed compilation error in BlockCauldron.h on Linuxluksor111@gmail.com2012-12-291-2/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1117 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Cauldrons and Brewing Stands are now placeableluksor111@gmail.com2012-12-293-0/+95
| | | | | | Cauldrons can be filled with water and used to fill bottles git-svn-id: http://mc-server.googlecode.com/svn/trunk@1116 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed Linux compilationluksor111@gmail.com2012-12-271-3/+6
| | | | | | Fixed flower pot consuming items in creative mode git-svn-id: http://mc-server.googlecode.com/svn/trunk@1111 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added flower potsluksor111@gmail.com2012-12-272-0/+82
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1107 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added sounds to levers and mobsluksor111@gmail.com2012-12-211-1/+10
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a bool evaluation warning in BlockDoor.hmadmaxoft@gmail.com2012-12-201-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1083 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added dispensers (they can't dispense items yet)luksor111@gmail.com2012-12-194-16/+15
| | | | | | | | Fixed crash when digging snow Moved BlockPlace hook check, so Core plugin will no longer block item usage Player chat messages are now visible in the console git-svn-id: http://mc-server.googlecode.com/svn/trunk@1081 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented double doorsluksor111@gmail.com2012-12-194-11/+82
| | | | | | | | | Implemented fence gate Updated g_BlockTransparent[] Doors can now only be opened by right clicking Doors will now drop when not supported by block git-svn-id: http://mc-server.googlecode.com/svn/trunk@1080 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Levers (patch contributed by Keyboard)madmaxoft@gmail.com2012-12-163-0/+114
| | | | | | http://forum.mc-server.org/showthread.php?tid=649 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1075 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added initial adventure mode supportluksor111@gmail.com2012-11-273-2/+30
| | | | | | | | | Added missing Emerald crafting recipe You get more fall damage when jumping Torch no longer protects players from fall damage Fixed Ender Chest drops git-svn-id: http://mc-server.googlecode.com/svn/trunk@1070 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed certain blocks crashing clients when minedluksor111@gmail.com2012-11-264-2/+31
| | | | | | | | 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
* Implemented rail placement mechanics.luksor111@gmail.com2012-11-252-0/+319
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1065 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed drops for: Stone, Mycelium, Redstone Torch.luksor111@gmail.com2012-11-243-1/+33
| | | | | | Fixed item usage for Jukeboxes and Spawn eggs in survival. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1064 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed boolean comparison.madmaxoft@gmail.com2012-11-161-3/+3
| | | | | | Don't compare booleans to false / true, use them directly. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1048 0a769ca7-a7f5-676a-18bf-c427514a06d6
* - Added the "wait" music discluksor111@gmail.com2012-11-151-4/+6
| | | | | | - Vines can now be placed on leaves git-svn-id: http://mc-server.googlecode.com/svn/trunk@1045 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Fixed a valgrind warning in BlockDirt.madmaxoft@gmail.com2012-10-261-3/+4
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1011 0a769ca7-a7f5-676a-18bf-c427514a06d6
* New Block property g_BlockIsSolid[]; Fixed ladder, torches and vines placement. (Patch contributed by funmaker)luksor111@gmail.com2012-10-235-62/+46
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1005 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Slight formatting tuneup to the previous commit.madmaxoft@gmail.com2012-10-221-4/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1003 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Vine decay (patch contributed by funmaker)madmaxoft@gmail.com2012-10-221-7/+44
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1002 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added jukeboxes (patch contributed by Luksor)madmaxoft@gmail.com2012-10-211-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@994 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Double chests are formed correctly in all situations (meta is adjusted for the neighboring chest)madmaxoft@gmail.com2012-10-201-2/+70
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@991 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Chest does check if it can be placed at the coords specified (the client does the check itself, too, but this may be good for scripts)madmaxoft@gmail.com2012-10-201-0/+68
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@989 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Floody fluid simulator now dries up correctly, too.madmaxoft@gmail.com2012-10-143-1/+48
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@964 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Preparation for multiple fluid simulators.madmaxoft@gmail.com2012-10-131-1/+1
| | | | | | | | | Moved all simulators into a subfolder. Replaced cWaterSimulator and cLavaSimulator with a generic cFluidSimulator. Moved original fluid simulation into cClassicFluidSimulator. Fluid simulator parameters (MaxHeight, Falloff) are read from the world.ini file (can have nether-like lava with lower falloff) git-svn-id: http://mc-server.googlecode.com/svn/trunk@956 0a769ca7-a7f5-676a-18bf-c427514a06d6
* All blockticking is now done in cBlockHandlersmadmaxoft@gmail.com2012-10-073-121/+185
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@942 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Completely removed the old (buggy) redstone simulator.madmaxoft@gmail.com2012-10-063-29/+77
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@937 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Minor style cleanupmadmaxoft@gmail.com2012-10-031-1/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@922 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Moved blockticking into blockhandler classes.madmaxoft@gmail.com2012-10-0347-392/+444
| | | | | | 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
* Slight refactoring of BlockHandlers - dropping unneeded virtual functionsmadmaxoft@gmail.com2012-10-0138-490/+842
| | | | | | ( 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
* Added some missing block enumsfaketruth2012-09-301-0/+3
| | | | | | Spruce, birch and jungle wood stairs now orient correctly git-svn-id: http://mc-server.googlecode.com/svn/trunk@916 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Forgot to commit BlockBed.cppfaketruth2012-09-291-0/+77
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@913 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Beds can be slept in now (it doesn't change the time though)faketruth2012-09-291-61/+7
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@911 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Unified folder name-casingmadmaxoft@gmail.com2012-09-2946-0/+2538
git-svn-id: http://mc-server.googlecode.com/svn/trunk@902 0a769ca7-a7f5-676a-18bf-c427514a06d6