summaryrefslogtreecommitdiffstats
path: root/src/BlockInfo.cpp
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-12-14 21:31:33 +0100
committerworktycho <work.tycho@gmail.com>2015-12-14 21:31:33 +0100
commit1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84 (patch)
tree8adc41d291bdac3c83eb0c56933e7a29cd1c3942 /src/BlockInfo.cpp
parentMerge pull request #2744 from cuberite/HopperMetaStrip (diff)
parentblockheight mechanism (diff)
downloadcuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar
cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.gz
cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.bz2
cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.lz
cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.xz
cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.tar.zst
cuberite-1e5ba8a1bb887808961e9c17dfd44af6bbbd2a84.zip
Diffstat (limited to 'src/BlockInfo.cpp')
-rw-r--r--src/BlockInfo.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/BlockInfo.cpp b/src/BlockInfo.cpp
index 54f11158e..cff5f953a 100644
--- a/src/BlockInfo.cpp
+++ b/src/BlockInfo.cpp
@@ -584,6 +584,27 @@ void cBlockInfo::Initialize(cBlockInfoArray & a_Info)
a_Info[E_BLOCK_STONE ].m_CanBeTerraformed = true;
+ // Block heights:
+ a_Info[E_BLOCK_BED ].m_BlockHeight = 0.5625; // 9 pixels
+ a_Info[E_BLOCK_CAKE ].m_BlockHeight = 0.5; // 8 pixels
+ a_Info[E_BLOCK_ENCHANTMENT_TABLE ].m_BlockHeight = 0.75; // 12 pixels
+ a_Info[E_BLOCK_STONE_SLAB ].m_BlockHeight = 0.5;
+ a_Info[E_BLOCK_WOODEN_SLAB ].m_BlockHeight = 0.5;
+ a_Info[E_BLOCK_SNOW ].m_BlockHeight = 0.125; // one layer is 1 / 8 (2 pixels) tall
+ a_Info[E_BLOCK_ACACIA_FENCE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_ACACIA_FENCE_GATE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_BIRCH_FENCE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_BIRCH_FENCE_GATE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_DARK_OAK_FENCE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_DARK_OAK_FENCE_GATE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_FENCE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_OAK_FENCE_GATE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_JUNGLE_FENCE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_JUNGLE_FENCE_GATE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_SPRUCE_FENCE ].m_BlockHeight = 1.5;
+ a_Info[E_BLOCK_SPRUCE_FENCE_GATE ].m_BlockHeight = 1.5;
+
+
// Block place sounds:
a_Info[E_BLOCK_STONE ].m_PlaceSound = "dig.stone";
a_Info[E_BLOCK_GRASS ].m_PlaceSound = "dig.grass";