I have built myself a lovely tidy house, with tv, 2 floors , garden and ocean view ... but i cant get that bed working !!
Sometimes it appear in a half, other times not at all. I understand it has x2 blocks (like the door) with x2 different id's again like the door (0, and 8) and i have added both BUT the thing is still giving me grief - here is the code (where 26 is the block ID for bed)
mc.setBlock(x, y, z, 26, 0)
mc.setBlock(x, y, z + 1, 26, 8)
Anyone had success getting it working? i be honest i would quiet like a double bed just in case i have someone over to stay or if i get lucky ;0)
But once i get one working and understand the method i can easy enough change the code for a 2nd.
If anyone can help I thank you in advance, this house has been cool and has asked for understanding way beyond this bed code so i an banjaxed as to why i am getting the headache that i am.
First of all, welcome to minecraft pi edition! Looking at your posts so far, i'd say you guys are probably having a blast with the python api. If you'd be willing to share some of your creations that would be great!
Now, I personally dont know how to solve your bed issue, but you might have a better chance of getting an answer by posting in our (un)official discord. We've been building a community there for almost a year now, and there's even mods for bugfixes, and servers to play on.
Hey all
I have built myself a lovely tidy house, with tv, 2 floors , garden and ocean view ... but i cant get that bed working !!
Sometimes it appear in a half, other times not at all. I understand it has x2 blocks (like the door) with x2 different id's again like the door (0, and 8) and i have added both BUT the thing is still giving me grief - here is the code (where 26 is the block ID for bed)
mc.setBlock(x, y, z, 26, 0)
mc.setBlock(x, y, z + 1, 26, 8)
Anyone had success getting it working? i be honest i would quiet like a double bed just in case i have someone over to stay or if i get lucky ;0)
But once i get one working and understand the method i can easy enough change the code for a 2nd.
If anyone can help I thank you in advance, this house has been cool and has asked for understanding way beyond this bed code so i an banjaxed as to why i am getting the headache that i am.
Cheers
Tim
[/pre]
Hey Tim!
First of all, welcome to minecraft pi edition! Looking at your posts so far, i'd say you guys are probably having a blast with the python api. If you'd be willing to share some of your creations that would be great!
Now, I personally dont know how to solve your bed issue, but you might have a better chance of getting an answer by posting in our (un)official discord. We've been building a community there for almost a year now, and there's even mods for bugfixes, and servers to play on.
if you're interested here's the link: https://discord.gg/tnzF5AWS9K
thanks!
- 6502