1
0
Commit Graph

70 Commits

Author SHA1 Message Date
madmaxoft
00af5d4d6e Debuggers: Test code for WECUI plugin messaging. 2014-01-09 14:26:44 +01:00
madmaxoft
e353f29d4a Plugin messages are received and handed to plugins.
Note that MCS doesn't currently handle any channel registrations, this will come later on.
2014-01-07 17:47:20 +01:00
madmaxoft
84bf32f857 Fixed cPluginManager:AddHook() binding.
Fixes #401. Old formats are still accepted, for compatibility reasons.
2014-01-05 15:46:45 +01:00
madmaxoft
248ba1ea9f Added HOOK_PLUGINS_LOADED.
This fixes #482.
2013-12-29 12:51:58 +01:00
madmaxoft
63753c5e84 Added cFile:GetFolderContents().
Fix 162.
2013-11-22 20:11:24 +01:00
madmaxoft
281bf8f90b Added cRoot:GetFurnaceFuelBurnTime() to Lua API. 2013-11-22 16:50:03 +01:00
madmaxoft
07a1de8ebb Debuggers: Added a test harness for cRoot:GetFurnaceRecipe().
The "/fr" command lists the furnace recipe for the currently held item.
2013-11-22 12:26:39 +01:00
madmaxoft
fed37bca4d Debuggers: Test harness for cWorld:ForEachBlockEntityInChunk().
The fill command will fill all empty slots in block entities with containment with gold nuggets, one per slot.
2013-11-20 21:54:37 +01:00
Daniel O'Brien
b3bb34974f updated plugin again... 2013-11-16 22:17:46 +11:00
Daniel O'Brien
25ccc33252 updated plugin 2013-11-16 22:05:34 +11:00
Daniel O'Brien
b72ced3164 removed SpendExperience and changed AddExperience to handle removing Xp 2013-11-16 22:00:45 +11:00
Daniel O'Brien
04dff4882a finished #143 I believe 2013-11-16 02:23:50 +11:00
Daniel O'Brien
5e3614ce87 Merge remote-tracking branch 'upstream/master' into playerxp 2013-11-16 00:07:42 +11:00
Daniel O'Brien
1b2e6e7473 added cProtocol function to pass xp to client 2013-11-15 22:42:09 +11:00
madmaxoft
5eb67dbdfc Debuggers: Removed the old OnChunkGenerated code testing the cBlockArea writing. 2013-11-15 11:28:11 +01:00
madmaxoft
7fddf4479d Debuggers: Added the BlockEntity test harness when generating chunks. 2013-11-15 09:49:56 +01:00
Daniel O'Brien
f6e16ce150 cProtocol add SendExperience() and debugging 2013-11-15 08:35:02 +11:00
madmaxoft
d41d5c15b1 Debuggers: Fixed after the cWindow API change. 2013-10-28 13:44:57 +01:00
madmaxoft
06b01af017 Implemented ghast fireball and firecharge projectiles 2013-09-07 18:53:14 +02:00
madmaxoft
af694a516d Debuggers plugin: Removed unneeded global 2013-09-07 18:33:15 +02:00
madmaxoft
9b987598bb Debuggers: added a test cmd to spawn arrows. 2013-08-22 09:07:31 +02:00
madmaxoft
e9583b3e81 Updated the Debuggers plugin to the #121 API. 2013-08-21 21:42:39 +02:00
madmaxoft
97aff179c1 Debuggers: Added continuous hunger reporting.
Showcases the OnWorldTick() hook to fire events at regular intervals. Will be used for debugging the issues related to hyper-hunger.
2013-08-19 22:48:13 +02:00
madmaxoft
0575cc00b4 Debuggers plugin: Added details about pickups to the "/le" command. 2013-08-19 12:03:34 +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
00ac16d92b Debuggers plugin: added the "/spidey" command.
This showcases the cLineBlockTracer functionality exposed to Lua.
2013-08-07 14:34:56 +02:00
madmaxoft
3531bdb60b Implemented OnPlayerRightClickingEntity() hook
Fixes FS 425
2013-08-02 08:44:06 +02:00
Alexander Harkness
e57b4e1e59 Changed name and put the whitespace back, as per xoft's suggestion. 2013-07-30 16:26:06 +01:00
Alexander Harkness
624c0a7554 Removed old features and fix #25. 2013-07-30 15:07:40 +01:00
Alexander Harkness
53e22b1185 Changed everyting to Unix line endings. 2013-07-29 12:13:03 +01:00
madmaxoft
64845e81b3 Debuggers: added the /starve and /fl (foodlevel) commands for manipulating player food level 2013-07-28 16:01:56 +02:00
madmaxoft@gmail.com
4fb771f3ff First implementation of movement-related hunger and API
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1673 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-12 20:01:25 +00:00
madmaxoft@gmail.com
0224a4f7fc Fixed sprinting in 1.6.1, made speeds available through API; fixed messages containing quotes.
Fixes FS #415

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1660 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-07 14:13:43 +00:00
madmaxoft@gmail.com
37f6c78404 Added DamageType translation to API
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1639 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-01 18:46:45 +00:00
madmaxoft@gmail.com
943dcaea14 Plugins can modify message in the OnChat() hook handler.
FS #376

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1622 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-22 19:08:34 +00:00
madmaxoft@gmail.com
dcc3af0704 Added cItem copy-constructor to Lua API, made cItem::IsEqual() and IsStackable() enchantment-aware
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1546 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-04 11:54:44 +00:00
madmaxoft@gmail.com
8ff22344af LuaWindow: Fixed memory leaks with unclosed windows
A player disconnecting will now force all windows to close, not respecting any plugin's overrides.
http://forum.mc-server.org/showthread.php?tid=1146&pid=8350#pid8350

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1543 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02 21:59:25 +00:00
madmaxoft@gmail.com
d2b3011c05 Added the possibility to specify enchantments by name in the constructor and AddFromString() function
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1542 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02 21:44:24 +00:00
madmaxoft@gmail.com
73f787feb3 Enchantments are now stored in Anvil world and in player inventory
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1541 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02 21:21:32 +00:00
madmaxoft@gmail.com
a19a070121 Enchantments: API and sending to client
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1539 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-02 10:40:20 +00:00
madmaxoft@gmail.com
bf7c2fe783 Added cLuaWindow:SetOnSlotChanged(); the callback is called only for non-inventory slots
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1535 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-31 07:16:14 +00:00
madmaxoft@gmail.com
2eb1240e14 Added the OnClosing callback to cLuaWindow API
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1534 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-30 20:40:43 +00:00
madmaxoft@gmail.com
9684f90f83 LuaWindow: Initial code, the window can be opened, but not much manipulated
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1532 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-30 19:34:09 +00:00
madmaxoft@gmail.com
5c3235ecdc Implemented droppers
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
2013-05-26 14:39:04 +00:00
madmaxoft@gmail.com
41db106a8f Added all new bindings, refactored Debuggers; new Debuggers function.
Rclk with a redstone torch  on a dispenser causes the dispenser to spit out one item each tick.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1509 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-25 12:03:20 +00:00
madmaxoft@gmail.com
cf87169737 Refactored cInventory to use cItemGrid for the actual Storage
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
2013-05-24 07:30:39 +00:00
madmaxoft@gmail.com
5d3ade0267 Inventory changes made by plugins are now propagated to the client
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1495 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 18:41:16 +00:00
madmaxoft@gmail.com
9dab3c4e8f Debuggers: a simple test of armor slot setting
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1494 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 18:37:01 +00:00
madmaxoft@gmail.com
8311ee5ec6 Debuggers: sorted things into separate functions, commented out most of them; added ForEachEntity() testing - list all and kill all entities.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1492 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-19 15:45:03 +00:00
madmaxoft
48cec90c3f Added Expat and LuaExpat, XML parsing now available in the API.
FS #336
Windows version only, Linux to be fixed soon.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1374 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-09 13:43:24 +00:00