1
0
Commit Graph

33 Commits

Author SHA1 Message Date
madmaxoft
a5c2d639c6 Added cWorld:ForEachBlockEntityInChunk() and cWorld:DoWithBlockEntityAt() functions.
Also exported them to the Lua API.
2013-11-20 21:53:29 +01:00
madmaxoft
49d6afd501 Removed cBlockEntity:CreateByBlockType() from the Lua API.
Plugins cannot be allowed to create block entities, that would result in memory leaks.
2013-11-15 10:15:27 +01:00
madmaxoft
ebb2ccaa26 Removed BlockEntities' constructors from the API.
Plugins shouldn't construct block entities, rather, they will query them either from the cWorld (while playing), or from cChunkDesc (while generating).
2013-11-15 09:49:56 +01:00
madmaxoft
4533fc34ec Added cNoteEntity to Lua API.
Ref. #228.
2013-11-14 17:14:54 +01:00
madmaxoft
efb6f598bc Exported cJukeboxEntity to Lua API.
Ref. #228
2013-11-14 16:05:55 +01:00
madmaxoft
082573771f Added cSignEntity into API, added cChunkDesc:GetBlockEntity().
This fixes both #228 and #347.
2013-11-14 15:37:09 +01:00
Tiger Wang
f713780db3 Bundled fixes [SEE DESC]
* Fixed compiler warning in Monster.cpp
* Future proofed particle effects
* Improved pickups, made less jittery
2013-11-10 22:20:25 +00:00
Tiger Wang
71abbb2f56 Bundled fixes [SEE DESC]
* Fixed pickups spawning in an incorrect position from a JukeBox
* Pickups make a popping sound in Prtcl1.7
* Arrows make a *what sort of sound does an arrow make anyway‽* when
hitting a block, and a popping sound when fired
* Mobs again have metadata
* Fixed Prtcl1.7 not using valid JSON to kick a client
* Minecarts and arrows again have metadata
2013-11-10 20:48:12 +00:00
Tiger Wang
96cd7d65a3 Fixed dropspensing speed and position 2013-11-02 14:09:07 +00:00
madmaxoft
b8a2793228 Fixed bindings for cHopperEntity:GetOutputBlockPos(). 2013-10-23 12:09:11 +02:00
madmaxoft
90bea6a914 Fixed cDropSpenserEntity bindings generating an extra var.
Caused by inadvertently exporting multiple-inheritance from a class that is not Lua-exported.
2013-10-23 11:17:16 +02:00
madmaxoft
730195c47e Exported cHopperEntity to API.
This allows hoppers to be created by plugins during chunk generation.
2013-10-23 11:12:04 +02:00
madmaxoft
1a7912744f Moved entities into the Entities subfolder. 2013-08-19 11:39:13 +02:00
madmaxoft
0d323563e4 Added cWindow property manipulation API.
Now enchantment table and furnace properties can be set by a plugin
2013-08-18 13:26:37 +02:00
madmaxoft
0cb00996de Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.
Also slightly improved the spawning algorithm.
2013-08-16 10:48:30 +02:00
madmaxoft
dd60f55bcc Added the OnHopperPullingItem and OnHopperPushingItem hooks.
Requested in FS 412, slightly modified the params.
2013-08-11 14:57:07 +02:00
madmaxoft
b688ba9be8 Removed the unused BlockY parameter from cChunkDef::BlockToChunk() 2013-08-03 20:05:07 +02:00
Alexander Harkness
53e22b1185 Changed everyting to Unix line endings. 2013-07-29 12:13:03 +01:00
nielsbreu@gmail.com
c153a5c6df Dispensers spawn fire if it has Flint and steel.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1619 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-22 10:03:41 +00:00
madmaxoft@gmail.com
e2281df8d8 Dispensers dispense primed TNT
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1617 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-21 21:19:47 +00:00
madmaxoft@gmail.com
0aba613084 Furnace window progressbars are initialized when the window is opened
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1613 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-20 11:46:08 +00:00
madmaxoft@gmail.com
8dd5fe5070 Furnaces light up visually when they're cooking
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1612 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-20 11:41:44 +00:00
madmaxoft@gmail.com
512c342782 Implemented hopper output
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1611 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-20 11:02:09 +00:00
madmaxoft@gmail.com
d633f8a671 Fixed a crash when placing new furnaces
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1610 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-20 11:01:13 +00:00
madmaxoft@gmail.com
97eda34a94 Rewritten furnaces
Furnaces now smelt the correct number of items.
Furnaces store their contents in a cItemGrid.
Furnace window is updated with correct items and progressbars.
Furnace recipes now use ticks instead of milliseconds.
Furnaces save and load their state completely, not missing a smelt operation.
Hoppers take items out of furnaces.
Dropped the cSlotAreaDropSpenser class, replaced it with generic cSlotAreaItemGrid

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1601 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-16 20:24:07 +00:00
madmaxoft@gmail.com
def8f859ba Fixed Linux compilation
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1589 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-15 08:00:24 +00:00
madmaxoft@gmail.com
03c6bb9f85 Added hopper entity, it can suck items out of chests, dispensers, droppers and other hopppers above it.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1587 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13 07:36:43 +00:00
madmaxoft@gmail.com
5c38a831bf cItemGrid: Added IsSlotEmpty() functions
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1585 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-13 06:13:56 +00:00
madmaxoft@gmail.com
9cef5838a8 ChestEntity: fixed bindings
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1584 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-12 12:30:47 +00:00
madmaxoft@gmail.com
007e75de9d Implemented the Hopper block handler
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
2013-06-12 08:22:34 +00:00
madmaxoft@gmail.com
afa60c5c35 Fixed a crash when generating a chest
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1549 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-04 12:34:35 +00:00
madmaxoft@gmail.com
b58f0cabad Window contents are sent whenever the window is opened by a player.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1533 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-30 19:42:19 +00:00
madmaxoft@gmail.com
9be27992e2 Moved BlockEntities to a separate folder
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1527 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-28 19:12:47 +00:00