Cuberite Forum

Full Version: [SOLVED] Set chests by plaugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to create chests into world by plugin?
I'm can't find how to do it.
Use cWorld:SetBlock(BlockX, BlockY, BlockZ, E_BLOCK_CHEST, Meta). Then you can use cWorld:DoWithChestAt(BlockX, BlockY, BlockZ, CallbackFunction) to change it's contents if wanted.
I't does not work.
What doesn't work, setting the chest block, or filling it with the callback?

I believe the minimum blockmeta for chests is 2. Try setting it to that.
Check that you use for chest the meta value of 2 to 5. A meta value of 0 makes the chest invisible.
I spent 18 hours in order to somehow solve the problem. A decision was so close Sad(((
Thank you very much, NiLSPACE and Seadragon91.