Set items to chest?
#2
Hi, welcome to the forum.

cWorld has the DoWithChestAt() function which lets you have any Lua function called with the cChestEntity parameter representing the chest: http://mc-server.xoft.cz/LuaAPI/cWorld.html
Then you can simply use the cChestEntity's SetSlot() function to set the slots: http://mc-server.xoft.cz/LuaAPI/cChestEntity.html
You'll need to handle the "random" part yourself in the plugin
Reply
Thanks given by:


Messages In This Thread
Set items to chest? - by agusnat16 - 03-19-2014, 05:13 PM
RE: Set items to chest? - by xoft - 03-19-2014, 07:06 PM
RE: Set items to chest? - by agusnat16 - 03-19-2014, 09:23 PM
RE: Set items to chest? - by xoft - 03-19-2014, 10:32 PM
RE: Set items to chest? - by agusnat16 - 03-19-2014, 11:16 PM
RE: Set items to chest? - by xoft - 03-20-2014, 12:16 AM
RE: Set items to chest? - by agusnat16 - 03-20-2014, 12:27 AM
RE: Set items to chest? - by xoft - 03-20-2014, 04:25 AM
RE: Set items to chest? - by agusnat16 - 03-20-2014, 01:57 PM
RE: Set items to chest? - by xoft - 03-20-2014, 06:09 PM



Users browsing this thread: 2 Guest(s)