I was trying something new ... a bed ....
I placed this in definitions/furniture/Bed.groovy....
* Copyright 2011 Benjamin Glatzel <benjamin.glatzel@me.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.terasology.data.blocks.definitions.furniture
/**
* A bed is interesting for two reasons: 1) it is a place for you to sleep 2) also a place for you to respawn to in the
* future (???).
*/
block {
version = 1
// Graphics
faces {
sides = "BedSide"
end1 = "BedFootEnd"
end2 = "BedHeadEnd"
top = "BedTop"
}
I have also put above 4 faces (in image form) in images/furniture/
BedFootEnd.png
BedHeadEnd.png
BedSide.png
BedTop.png
and it looks like this ......
So, I know this from the picture I can make a completely new block and it will show up in a test run !!!!! this is a very good thing for me
but also I know ......
1) there is no bottom to this block
2) it is not what a bed should look like but close
3) image block uses BedSide.png BedTop.png
4) image block does not uses BedFootEnd.png BedHeadEnd.png
OK .... after you are done
and falling out of your chairs (and that is ok
) could you explain a little what I might have done wrong and how to correct it
I placed this in definitions/furniture/Bed.groovy....
* Copyright 2011 Benjamin Glatzel <benjamin.glatzel@me.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.terasology.data.blocks.definitions.furniture
/**
* A bed is interesting for two reasons: 1) it is a place for you to sleep 2) also a place for you to respawn to in the
* future (???).
*/
block {
version = 1
// Graphics
faces {
sides = "BedSide"
end1 = "BedFootEnd"
end2 = "BedHeadEnd"
top = "BedTop"
}
I have also put above 4 faces (in image form) in images/furniture/
BedFootEnd.png
BedHeadEnd.png
BedSide.png
BedTop.png
and it looks like this ......

So, I know this from the picture I can make a completely new block and it will show up in a test run !!!!! this is a very good thing for me
1) there is no bottom to this block
2) it is not what a bed should look like but close
3) image block uses BedSide.png BedTop.png
4) image block does not uses BedFootEnd.png BedHeadEnd.png
OK .... after you are done
Attachments
-
89.5 KB Views: 600