Example #1
0
        private void OnBlockBraek(object sender, BlockBreakEventArgs args)
        {
            Player player = args.Player;

            if (player.Inventory.MainHandItem.Item.ID != ItemIDs.WOODEN_AXE)
            {
                return;
            }

            args.IsCancel = true;

            Block        block = args.Block;
            Vector3      pos   = block.ToVector3();
            PositionData data  = WorldEdit.Instance.PositionManager.getPositionData(player.Name);

            data.SecoundPosition = pos;

            player.SendMessage($"§b2つ目の位置 | x {pos.FloorX} | y {pos.FloorY} | z {pos.FloorZ} | 範囲 {data.GetRange()}");
            player.SendMessage($"§bブロック名 {block.Name} | ブロックID {block.ID}:{block.Damage}");
        }