2015-03-03 54 views
1

因此,目前我在我的Minecraft中產卵的水不流動。它只是懸停在空中。由mod產生的水不會流動

BlockPos pos = new BlockPos((myChunk.xPosition * 16) + x + 1, y + 2, (myChunk.zPosition * 16) + z); 
//Set block to current position and set it to flow. 
//State 8 is flowing water, 9 is water. 
//TODO: Test differences between state 8 and 9. 
myChunk.setBlockState(pos, BlockDynamicLiquid.getStateById(8)); 

無論如何,我玩過各種狀態,並嘗試更新塊和塊。任何建議,將不勝感激,謝謝。

回答

1

您需要在產卵後更新塊,例如setBlockMetadataWithNotify(i, j, k, le, flag)

+0

謝謝,但我相信這是1.8棄用。還有其他建議嗎? – Siphorus 2015-03-07 10:00:12