0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Minecraft】world.setBlockの使い方

Last updated at Posted at 2019-09-24

###パラメーター
world.setBlock(x, y, z, block, metadata, direction?)
六番目のパラメーターは、確証がありません。
詳しくはこちらのページを見てください。
####注意点
worldは、変数なので、何らかの方法で取得する必要があります。
blockの取得はgetBlockByIdが便利です。

@Override
public void onNeighborBlockChange(World world, int x, int y, int z, Block block) {
  world.setBlock(x,  y,  z, getBlockById(0), 0, 2);
}

隣のブロックが更新されると、自信を削除するプログラムです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?