huanmeng_cn
如题,朝一个方向放置方块,比如:x+1放置一个,在x+1的基础上再+1
大概是这样qwq
如果可以,麻烦贴个示例

for (int i=1;i<3;i++) {
  getblock(x+i,y,z).setType(stone);
}

huanmeng_cn

试了的,没用啊qwq

Sssss...
huanmeng_cn 发表于 2020-1-8 17:12
试了的,没用啊qwq

不可能没用
把你的代码发出来看看

asfdweas
huanmeng_cn 发表于 2020-1-8 17:12
试了的,没用啊qwq

111111111111111111111111111111

huanmeng_cn
Sssss... 发表于 2020-1-8 18:23
不可能没用
把你的代码发出来看看
  1. @EventHandler
  2.         public void a(BlockPlaceEvent e) {
  3.                 for(int i=1;i<10;i++) {
  4.                         Location loc1=new Location(e.getBlockPlaced().getWorld(), e.getBlockPlaced().getX()+i,e.getBlockPlaced().getY(),e.getBlockPlaced().getZ());
  5.                         e.getBlockPlaced().getWorld().getBlockAt(loc1).setType(e.getBlockPlaced().getType());
  6.                 }
  7.         }
复制代码

Sssss...

监听器注册了吗

huanmeng_cn

注册了,已解决