[SOLVED] Set chests by plaugin
#1
Is it possible to create chests into world by plugin?
I'm can't find how to do it.
Reply
Thanks given by:
#2
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.
Reply
Thanks given by:
#3
I't does not work.
Reply
Thanks given by:
#4
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.
Reply
Thanks given by: DrMasik
#5
Check that you use for chest the meta value of 2 to 5. A meta value of 0 makes the chest invisible.
Reply
Thanks given by: DrMasik
#6
I spent 18 hours in order to somehow solve the problem. A decision was so close Sad(((
Thank you very much, NiLSPACE and Seadragon91.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)